@Test public void shouldSyncFacilityVisit() throws Exception { FacilityDistribution facilityDistribution = new FacilityDistribution(); FacilityVisit facilityVisit = new FacilityVisit(); facilityDistribution.setFacilityVisit(facilityVisit); facilityDistributionService.setSynced(facilityDistribution); verify(facilityVisitService).setSynced(facilityVisit); }
public FacilityDistribution setSynced(FacilityDistribution facilityDistribution) { facilityVisitService.setSynced(facilityDistribution.getFacilityVisit()); return facilityDistribution; }
FacilityDistributionService { public FacilityDistribution setSynced(FacilityDistribution facilityDistribution) { facilityVisitService.setSynced(facilityDistribution.getFacilityVisit()); return facilityDistribution; } }
FacilityDistributionService { public FacilityDistribution setSynced(FacilityDistribution facilityDistribution) { facilityVisitService.setSynced(facilityDistribution.getFacilityVisit()); return facilityDistribution; }  }
FacilityDistributionService { public FacilityDistribution setSynced(FacilityDistribution facilityDistribution) { facilityVisitService.setSynced(facilityDistribution.getFacilityVisit()); return facilityDistribution; }  Map<Long, FacilityDistribution> createFor(Distribution distribution); FacilityDistribution save(FacilityDistribution facilityDistribution); FacilityDistribution setSynced(FacilityDistribution facilityDistribution); Map<Long, FacilityDistribution> get(Distribution distribution); }
FacilityDistributionService { public FacilityDistribution setSynced(FacilityDistribution facilityDistribution) { facilityVisitService.setSynced(facilityDistribution.getFacilityVisit()); return facilityDistribution; }  Map<Long, FacilityDistribution> createFor(Distribution distribution); FacilityDistribution save(FacilityDistribution facilityDistribution); FacilityDistribution setSynced(FacilityDistribution facilityDistribution); Map<Long, FacilityDistribution> get(Distribution distribution);  }