### Question:
DateFormatRegistry { @Deprecated public String getPattern(Locale locale) { requireNonNull(locale, "locale must not be null"); String registeredPattern = languagePatterns.get(locale.getLanguage()); if (registeredPattern != null) { return registeredPattern; } else { return defaultLocalePattern(locale); } }  @Deprecated String getPattern(Locale locale); @Deprecated
    static final String PATTERN_ISO; @Deprecated
    static final String PATTERN_DE; }### Answer:
@SuppressWarnings("deprecation") @Test public void testGetPattern() { DateFormatRegistry registry = new DateFormatRegistry(); assertThat(registry.getPattern(GERMAN), is(DateFormatRegistry.PATTERN_DE)); assertThat(registry.getPattern(GERMANY), is(DateFormatRegistry.PATTERN_DE)); assertThat(registry.getPattern(AUSTRIA), is(DateFormatRegistry.PATTERN_DE)); assertThat(registry.getPattern(ENGLISH), is(not(nullValue()))); assertThat(registry.getPattern(ENGLISH), is(not(DateFormatRegistry.PATTERN_DE))); assertThat(registry.getPattern(ENGLISH), is(not(DateFormatRegistry.PATTERN_ISO))); assertThat(registry.getPattern(US), is(not(nullValue()))); assertThat(registry.getPattern(US), is(not(DateFormatRegistry.PATTERN_DE))); assertThat(registry.getPattern(US), is(not(DateFormatRegistry.PATTERN_ISO))); }