### Question:
TranslationModuleOverrideUtil { public boolean shouldOverride() { return useCustomTranslations && pluginStateResolver.isEnabled(CustomTranslationContants.PLUGIN_IDENTIFIER); }  boolean shouldOverride(); void addTranslationKeysForPlugin(final String pluginIdentifier, final Set<String> basenames); void removeTranslationKeysForPlugin(final String pluginIdentifier);  }### Answer:
@Test public void shouldReturnTrueWhenShouldOverride() { ReflectionTestUtils.setField(translationModuleOverrideUtil, "useCustomTranslations", true); given(pluginStateResolver.isEnabled(CustomTranslationContants.PLUGIN_IDENTIFIER)).willReturn(true); boolean result = translationModuleOverrideUtil.shouldOverride(); assertTrue(result); }
@Test public void shouldReturnFalseWhenShouldOverride() { ReflectionTestUtils.setField(translationModuleOverrideUtil, "useCustomTranslations", false); given(pluginStateResolver.isEnabled(CustomTranslationContants.PLUGIN_IDENTIFIER)).willReturn(false); boolean result = translationModuleOverrideUtil.shouldOverride(); assertFalse(result); }