@Test public void shouldGetById() { repository.getById(1l); verify(mockedMapper).getById(1l); }
public Product getById(Long id) { return mapper.getById(id); }
ProductRepository { public Product getById(Long id) { return mapper.getById(id); } }
ProductRepository { public Product getById(Long id) { return mapper.getById(id); }  }
ProductRepository { public Product getById(Long id) { return mapper.getById(id); }  void insert(Product product); void update(Product product); Long getIdByCode(String code); Product getByCode(String code); DosageUnit getDosageUnitByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id); }
ProductRepository { public Product getById(Long id) { return mapper.getById(id); }  void insert(Product product); void update(Product product); Long getIdByCode(String code); Product getByCode(String code); DosageUnit getDosageUnitByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id);  }