@Test public void shouldReturnIsActive() { service.isActive("code"); verify(repository).isActive("code"); }
public boolean isActive(String code) { return repository.isActive(code); }
ProductService { public boolean isActive(String code) { return repository.isActive(code); } }
ProductService { public boolean isActive(String code) { return repository.isActive(code); }  }
ProductService { public boolean isActive(String code) { return repository.isActive(code); }  @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 boolean isActive(String code) { return repository.isActive(code); }  @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);  }