ANMReportsRepository { @Transactional("anm_report") public List getReportsFor(String anmId, String startDate, String endDate) { return anmReportDataRepository.getReportsFor(anmId, startDate, endDate); } protected  ANMReportsRepository(); @Autowired  ANMReportsRepository(ANMCacheableRepository anmRepository,
                                @Qualifier("anmReportsIndicatorRepository") IndicatorCacheableRepository indicatorRepository,
                                AllANMReportDataRepository anmReportDataRepository,
                                AllAnnualTargetsRepository annualTargetsRepository, Monitor monitor, ReportMonth reportMonth); @Transactional("anm_report") void save(String anmIdentifier, String externalId, String indicator, String date, String quantity); @Transactional("anm_report") List<ANMIndicatorSummary> fetchANMSummary(String anmIdentifier); @Transactional("anm_report") List<ANMReport> fetchAllANMsReport(); @Transactional("anm_report") void update(ReportDataUpdateRequest request); @Transactional("anm_report") List getReportsFor(String anmId, String startDate, String endDate); @Transactional("anm_report") void delete(ReportDataDeleteRequest request);  }
@Test public void shouldCallANMReportRepositoryForReports() { repository.getReportsFor("ANM X", "2013-10-26", "2013-11-25"); verify(anmReportDataRepository).getReportsFor("ANM X", "2013-10-26", "2013-11-25"); }