@Test public void getLamsConfigurationTest(){ Map<String, List<String>> map = new HashMap<>(); List<String> list = new ArrayList<>(); list.add("value"); map.put("key",list); when(lamsConfigurationRepository.findForCriteria(any(LamsConfigurationGetRequest.class))).thenReturn(map); assertTrue(map.equals(lamsConfigurationService.getLamsConfigurations(any(LamsConfigurationGetRequest.class)))); }
public Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest) { return lamsConfigurationRepository.findForCriteria(lamsConfigurationGetRequest); }
LamsConfigurationService { public Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest) { return lamsConfigurationRepository.findForCriteria(lamsConfigurationGetRequest); } }
LamsConfigurationService { public Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest) { return lamsConfigurationRepository.findForCriteria(lamsConfigurationGetRequest); }  }
LamsConfigurationService { public Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest) { return lamsConfigurationRepository.findForCriteria(lamsConfigurationGetRequest); }  Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest); }
LamsConfigurationService { public Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest) { return lamsConfigurationRepository.findForCriteria(lamsConfigurationGetRequest); }  Map<String, List<String>> getLamsConfigurations(LamsConfigurationGetRequest lamsConfigurationGetRequest);  }