JstlLocalization implements Localization { public Locale getFallbackLocale() { return localeFor(Config.FMT_FALLBACK_LOCALE); } JstlLocalization(RequestInfo request); ResourceBundle getBundle(); Locale getLocale(); Locale getFallbackLocale(); String getMessage(String key, Object... parameters);  }
@Test public void testFallbackLocale() { when(request.getAttribute(FMT_FALLBACK_LOCALE + ".request")).thenReturn(PT_BR); assertThat(localization.getFallbackLocale(), equalTo(PT_BR)); }