@Test public void shouldGetDistributionIfExists() { Distribution distribution = new Distribution(); service.get(distribution); verify(repository).get(distribution); }
public Distribution get(Distribution distribution) { return repository.get(distribution); }
DistributionService { public Distribution get(Distribution distribution) { return repository.get(distribution); } }
DistributionService { public Distribution get(Distribution distribution) { return repository.get(distribution); }  }
DistributionService { public Distribution get(Distribution distribution) { return repository.get(distribution); }  @Transactional Distribution create(Distribution distribution); @Transactional FacilityDistribution sync(FacilityDistribution facilityDistribution); Distribution get(Distribution distribution); DistributionStatus updateDistributionStatus(Long distributionId, Long modifiedBy); List<Long> getSyncedPeriodsForDeliveryZoneAndProgram(Long zoneId, Long programId); Distribution getBy(Long distributionId); }
DistributionService { public Distribution get(Distribution distribution) { return repository.get(distribution); }  @Transactional Distribution create(Distribution distribution); @Transactional FacilityDistribution sync(FacilityDistribution facilityDistribution); Distribution get(Distribution distribution); DistributionStatus updateDistributionStatus(Long distributionId, Long modifiedBy); List<Long> getSyncedPeriodsForDeliveryZoneAndProgram(Long zoneId, Long programId); Distribution getBy(Long distributionId);  }