@Test public void shouldInsertIsa() throws Exception { Long facilityId = 100L; ProgramProductISA isa = new ProgramProductISA(); service.insertISA(facilityId, isa); verify(repository).insertISA(facilityId, isa); }
public void insertISA(Long facilityId, ProgramProductISA isa) { repository.insertISA(facilityId, isa); }
FacilityProgramProductService { public void insertISA(Long facilityId, ProgramProductISA isa) { repository.insertISA(facilityId, isa); } }
FacilityProgramProductService { public void insertISA(Long facilityId, ProgramProductISA isa) { repository.insertISA(facilityId, isa); }  }
FacilityProgramProductService { public void insertISA(Long facilityId, ProgramProductISA isa) { repository.insertISA(facilityId, isa); }  List<FacilityProgramProduct> getForProgramAndFacility(Long programId, final Long facilityId); void insertISA(Long facilityId, ProgramProductISA isa); void deleteISA(Long facilityId, ProgramProductISA isa); void deleteISA(Long facilityId, Long programProductId); void updateISA(ProgramProductISA isa); void save(final Long facilityId, List<FacilityProgramProduct> products); List<FacilityProgramProduct> getActiveProductsForProgramAndFacility(Long programId, Long facilityId); ISA getOverriddenIsa(Long programProductId, Long facilityId); }
FacilityProgramProductService { public void insertISA(Long facilityId, ProgramProductISA isa) { repository.insertISA(facilityId, isa); }  List<FacilityProgramProduct> getForProgramAndFacility(Long programId, final Long facilityId); void insertISA(Long facilityId, ProgramProductISA isa); void deleteISA(Long facilityId, ProgramProductISA isa); void deleteISA(Long facilityId, Long programProductId); void updateISA(ProgramProductISA isa); void save(final Long facilityId, List<FacilityProgramProduct> products); List<FacilityProgramProduct> getActiveProductsForProgramAndFacility(Long programId, Long facilityId); ISA getOverriddenIsa(Long programProductId, Long facilityId);  }