@Test public void shouldGetTotalSearchResultCount() { service.getTotalSearchResultCount("search-param"); verify(repository).getTotalSearchResultCount("search-param"); }
public Integer getTotalSearchResultCount(String searchParam) { return repository.getTotalSearchResultCount(searchParam); }
ProductService { public Integer getTotalSearchResultCount(String searchParam) { return repository.getTotalSearchResultCount(searchParam); } }
ProductService { public Integer getTotalSearchResultCount(String searchParam) { return repository.getTotalSearchResultCount(searchParam); }  }
ProductService { public Integer getTotalSearchResultCount(String searchParam) { return repository.getTotalSearchResultCount(searchParam); }  @Transactional void save(Product product); Long getIdForCode(String code); Product getByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id); }
ProductService { public Integer getTotalSearchResultCount(String searchParam) { return repository.getTotalSearchResultCount(searchParam); }  @Transactional void save(Product product); Long getIdForCode(String code); Product getByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id);  }