### Question:
ParametersServiceImpl implements ParametersService { @Override public Map<String, String> getParameters() { Map<String, String> displayParameters = new HashMap<String, String>(); Map<String, String> configParameters = configurationService.getConfiguration(); for(Map.Entry<String, String> entry : configParameters.entrySet()) { String configKey = entry.getKey(); String configValue = entry.getValue(); String uiKey = keyTranslator.getUIKey(configKey); if(StringUtils.isNotBlank(uiKey)) { displayParameters.put(uiKey, configValue); } } return displayParameters; }  @Override boolean saveParameters(Map<String, String> parameters); @Override Map<String, String> getParameters(); @Autowired void setConfigurationService(ConfigurationService configurationService); @Autowired void setKeyTranslator(ConfigurationKeyTranslator keyTranslator);  }### Answer:
@Test public void testGetParameters() { Map<String, String> configParameters = new HashMap<String, String>(); configParameters.put("tdm.crewAssignmentRefreshInterval", "120"); configParameters.put("admin.senderEmailAddress", "mtabuscis@mtabuscis.net"); when(configurationService.getConfiguration()).thenReturn(configParameters); Map<String,String> displayParameters = service.getParameters(); assertTrue("Expecting translated key to be present in the map", displayParameters.containsKey("tdmCrewAssignmentRefreshKey")); assertEquals("Expecting value to be associated with the translated key", "120", displayParameters.get("tdmCrewAssignmentRefreshKey")); assertTrue("Expecting translated key to be present in the map", displayParameters.containsKey("adminSenderEmailAddressKey")); assertEquals("Expecting value to be associated with the translated key", "mtabuscis@mtabuscis.net", displayParameters.get("adminSenderEmailAddressKey")); }