### Question:
TranslationServiceOverrideUtil { public String getCustomTranslation(final String key, final Locale locale, final String[] args) { return customTranslationResolver.getCustomTranslation(key, locale, args); }  boolean shouldOverrideTranslation(final String key, final Locale locale); String getCustomTranslation(final String key, final Locale locale, final String[] args);  }### Answer:
@Test public void shouldReturnNullWhenGetCustomTranslationIfCustomTranslationIsNull() { String key = "key"; Locale locale = new Locale("pl"); String[] args = null; given(customTranslationResolver.getCustomTranslation(key, locale, args)).willReturn(null); String result = translationServiceOverrideUtil.getCustomTranslation(key, locale, args); assertEquals(null, result); }
@Test public void shouldReturnCustomTranslationWhenGetCustomTranslation() { String key = "key"; Locale locale = new Locale("pl"); String[] args = null; String translation = "translation"; given(customTranslationResolver.getCustomTranslation(key, locale, args)).willReturn(translation); String result = translationServiceOverrideUtil.getCustomTranslation(key, locale, args); assertEquals(translation, result); }