dfs.setZeroDigit ('1');
dfs.setDigit ('X');
dfs.setGroupingSeparator ('!');
df.setDecimalFormatSymbols(dfs); // dfs is only a copy of the internal
// symbols so pass symbols back to df
harness.check (df.toLocalizedPattern (), "X1,XX");
df.applyPattern ("Fr #,##0.##");
String x1 = df.toPattern ();
String x2 = df.toLocalizedPattern ();
harness.check (x1.length (), x2.length ());