### Question:
EmptyLocaleProvider implements LocaleProvider { @Override public Optional<Locale> resolveLocale(final HttpServletRequest request) { return Optional.absent(); }  @Override Optional<Locale> resolveLocale(final HttpServletRequest request);  }### Answer:
@Test public void testShouldNotReturnNull() throws Exception { Assert.assertNotNull(emptyLocaleProvider.resolveLocale(null)); }
@Test public void testDefaultAbsent() throws Exception { Assert.assertFalse("locale should be absent", emptyLocaleProvider.resolveLocale(null).isPresent()); }