### Question:
PDTFormatter { @Nonnull public static DateTimeFormatter getForPattern (@Nonnull final String sPattern) { return getForPattern (sPattern, null); } private  PDTFormatter(); @Nonnull static FormatStyle toFormatStyle(final int nStyle); static int toDateStyle(@Nonnull final FormatStyle eStyle); @Nonnull static String getPattern(@Nonnull final EDTType eDTType,
                                   @Nullable final Locale aLocale,
                                   @Nonnull final FormatStyle eStyle,
                                   @Nonnull final EDTFormatterMode eMode); @Nonnull static DateTimeFormatter getWithLocale(@Nonnull final DateTimeFormatter aFormatter, @Nullable final Locale aDisplayLocale); @Nonnull static DateTimeFormatter getFormatterDate(@Nonnull final FormatStyle eStyle,
                                                    @Nullable final Locale aDisplayLocale,
                                                    @Nonnull final EDTFormatterMode eMode); @Nonnull static DateTimeFormatter getFormatterTime(@Nonnull final FormatStyle eStyle,
                                                    @Nullable final Locale aDisplayLocale,
                                                    @Nonnull final EDTFormatterMode eMode); @Nonnull static DateTimeFormatter getFormatterDateTime(@Nonnull final FormatStyle eStyle,
                                                        @Nullable final Locale aDisplayLocale,
                                                        @Nonnull final EDTFormatterMode eMode); @Nonnull static DateTimeFormatter getForPattern(@Nonnull final String sPattern); @Nonnull static DateTimeFormatter getForPattern(@Nonnull final String sPattern, @Nullable final Locale aDisplayLocale); static final FormatStyle DEFAULT_STYLE; }### Answer:
@Test public void testGetForPattern () { for (final Locale aLocale : LocaleCache.getInstance ().getAllLocales ()) assertNotNull (PDTFormatter.getForPattern ("uuuu-MM-dd", aLocale)); assertNotNull (PDTFormatter.getForPattern ("uuuu-MM-dd")); assertNotNull (PDTFormatter.getForPattern ("uuuu-MM-dd", null)); try { PDTFormatter.getForPattern ("abcdefghijklmnopqrstuvwxyz"); fail (); } catch (final IllegalArgumentException ex) {} }