@Test public void shouldUpdateProductGroup() throws Exception { ProductGroup productGroup = new ProductGroup(); repository.update(productGroup); verify(mapper).update(productGroup); }
public void update(ProductGroup productGroup) { mapper.update(productGroup); }
ProductGroupRepository { public void update(ProductGroup productGroup) { mapper.update(productGroup); } }
ProductGroupRepository { public void update(ProductGroup productGroup) { mapper.update(productGroup); }  }
ProductGroupRepository { public void update(ProductGroup productGroup) { mapper.update(productGroup); }  void insert(ProductGroup productGroup); ProductGroup getByCode(String code); void update(ProductGroup productGroup); List<ProductGroup> getAll(); }
ProductGroupRepository { public void update(ProductGroup productGroup) { mapper.update(productGroup); }  void insert(ProductGroup productGroup); ProductGroup getByCode(String code); void update(ProductGroup productGroup); List<ProductGroup> getAll();  }