### Question:
CustomTranslationResolverImpl implements CustomTranslationResolver { @Override public boolean isCustomTranslationActive(final String key, final Locale locale) { return customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage()); }  @Override boolean isCustomTranslationActive(final String key, final Locale locale); @Override String getCustomTranslation(final String key, final Locale locale, final String[] args);  }### Answer:
@Test public void shouldReturnTrueWhenIsCustomTranlationActive() { String key = "key"; Locale locale = new Locale("pl"); given(customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage())).willReturn(true); boolean result = customTranslationResolver.isCustomTranslationActive(key, locale); assertTrue(result); }
@Test public void shouldReturFalseWhenIsCustomTranslationActive() { String key = "key"; Locale locale = new Locale("pl"); given(customTranslationCacheService.isCustomTranslationActive(key, locale.getLanguage())).willReturn(false); boolean result = customTranslationResolver.isCustomTranslationActive(key, locale); assertFalse(result); }