### Question:
FunctionNamingService { public String getFunctionName(String function) { return Optional.ofNullable(translationService.getValue(FUNCTIONS_DOMAIN + function)).orElse(function); } @Inject  FunctionNamingService(final ClientTranslationService translationService); String getFunctionName(String function); String getParamName(String function, String param); String getParamHelp(String function, String param);  }### Answer:
@Test public void testGetFunctionName() { when(translationService.getValue("KieFunctions." + FUNCTION)).thenReturn(TRANSLATED_NAME); assertEquals(TRANSLATED_NAME, namingService.getFunctionName(FUNCTION)); }