public void test_toLocalizedPattern() {
// Test for method java.lang.String
// java.text.SimpleDateFormat.toLocalizedPattern()
SimpleDateFormat f2 = new SimpleDateFormat("GyMdkHmsSEDFwWahKz",
new Locale("de", "CH"));
String pattern = f2.toLocalizedPattern();
assertTrue("Wrong pattern: " + pattern, pattern
.equals("GuMtkHmsSEDFwWahKz"));
// test the new "Z" pattern char
f2 = new SimpleDateFormat("G y M d Z", new Locale("de", "CH"));