@Test public void getCerticatesDetailsTest() throws Exception { when(certificateRepository.getCertificatesDetails(anyString(), anyString(), anyObject())).thenReturn(new ArrayList<>()); assertThat(certificateService.getCerticatesDetails("ag","",new HashMap<>()), is(notNullValue())); }
public List<Map<String, Object>> getCerticatesDetails(String assetGroup, String searchText, Map<String, String> filter) throws ServiceException { try { return certificateRepository.getCertificatesDetails(assetGroup, searchText, filter); } catch (DataException e) { throw new ServiceException(e); } }
CertificateService { public List<Map<String, Object>> getCerticatesDetails(String assetGroup, String searchText, Map<String, String> filter) throws ServiceException { try { return certificateRepository.getCertificatesDetails(assetGroup, searchText, filter); } catch (DataException e) { throw new ServiceException(e); } } }
CertificateService { public List<Map<String, Object>> getCerticatesDetails(String assetGroup, String searchText, Map<String, String> filter) throws ServiceException { try { return certificateRepository.getCertificatesDetails(assetGroup, searchText, filter); } catch (DataException e) { throw new ServiceException(e); } }  }
CertificateService { public List<Map<String, Object>> getCerticatesDetails(String assetGroup, String searchText, Map<String, String> filter) throws ServiceException { try { return certificateRepository.getCertificatesDetails(assetGroup, searchText, filter); } catch (DataException e) { throw new ServiceException(e); } }  Map<String, Object> getCerticatesExpiryByApplication(
            String assetGroup); List<Map<String, Object>> getCerticatesDetails(String assetGroup,
            String searchText, Map<String, String> filter); Map<String, Object> getCerticatesSummary(String assetGroup); }
CertificateService { public List<Map<String, Object>> getCerticatesDetails(String assetGroup, String searchText, Map<String, String> filter) throws ServiceException { try { return certificateRepository.getCertificatesDetails(assetGroup, searchText, filter); } catch (DataException e) { throw new ServiceException(e); } }  Map<String, Object> getCerticatesExpiryByApplication(
            String assetGroup); List<Map<String, Object>> getCerticatesDetails(String assetGroup,
            String searchText, Map<String, String> filter); Map<String, Object> getCerticatesSummary(String assetGroup);  }