### Question:
PpcFormat extends Format { private static Locale defaultLocale() { return Locale.getDefault(); } protected  PpcFormat(DecimalFormat numberFormat, int minDecimals, List<Integer> groups); static Builder builder(); static PpcFormat getInstance(); static PpcFormat getSymbolInstance(); static PpcFormat getCodeInstance(); static PpcFormat getSymbolInstance(int fractionPlaces); static PpcFormat getCodeInstance(int minDecimals); static PpcFormat getInstance(Locale locale); static PpcFormat getCodeInstance(Locale locale); static PpcFormat getInstance(Locale locale, int minDecimals); static PpcFormat getCodeInstance(Locale locale, int minDecimals); static PpcFormat getSymbolInstance(Locale locale); static PpcFormat getSymbolInstance(Locale locale, int fractionPlaces); static PpcFormat getInstance(Style style); static PpcFormat getInstance(Style style, int fractionPlaces); static PpcFormat getInstance(Style style, Locale locale); static PpcFormat getInstance(Style style, Locale locale, int fractionPlaces); static PpcFormat getCoinInstance(); static PpcFormat getCoinInstance(int minFractionPlaces, int... groups); static PpcFormat getCoinInstance(Locale locale); static PpcFormat getCoinInstance(Locale locale, int scale, int... groups); static PpcFormat getMilliInstance(); static PpcFormat getMilliInstance(Locale locale); static PpcFormat getMilliInstance(int scale, int... groups); static PpcFormat getMilliInstance(Locale locale, int scale, int... groups); static PpcFormat getMicroInstance(); static PpcFormat getMicroInstance(Locale locale); static PpcFormat getMicroInstance(int scale, int... groups); static PpcFormat getMicroInstance(Locale locale, int scale, int... groups); static PpcFormat getInstance(int scale, int minDecimals, int... groups); static PpcFormat getInstance(int scale); static PpcFormat getInstance(int scale, Locale locale); static PpcFormat getInstance(int scale, Locale locale, int minDecimals, int... groups); static PpcFormat getInstance(int scale, Locale locale, int minDecimals, List<Integer> groups); @Override AttributedCharacterIterator formatToCharacterIterator(Object obj); @Override StringBuffer format(Object qty, StringBuffer toAppendTo, FieldPosition pos); String format(Object qty, int minDecimals, int... fractionGroups); StringBuffer format(Object qty, StringBuffer toAppendTo, FieldPosition pos,
                                            int minDecimals, int... fractionGroups); @Override final Object parseObject(String source, ParsePosition pos); Coin parse(String source, ParsePosition pos); Coin parse(String source); static Locale[] getAvailableLocales(); String coinSymbol(); String coinCode(); String pattern(); DecimalFormatSymbols symbols(); @Override boolean equals(Object o); @Override int hashCode(); static final int COIN_SCALE; static final int MILLICOIN_SCALE; static final int MICROCOIN_SCALE; }### Answer:
@Test public void defaultLocaleTest() { assertEquals( "Default Locale is " + Locale.getDefault().toString(), PpcFormat.getInstance().pattern(), PpcFormat.getInstance(Locale.getDefault()).pattern() ); assertEquals( "Default Locale is " + Locale.getDefault().toString(), PpcFormat.getCodeInstance().pattern(), PpcFormat.getCodeInstance(Locale.getDefault()).pattern() ); }