MCTSSMSReportService { public void markReportAsSent(MCTSReport report) { mctsReportRepository.markReportAsSent(report); } @Autowired  MCTSSMSReportService(AllMCTSReports mctsReportRepository); List<MCTSReport> fetch(String date); void markReportAsSent(MCTSReport report);  }
@Test public void shouldDelegateToAllMCTSReportsToCloseMCTSReport() throws Exception { MCTSReport mctsReport = new MCTSReport().withCaseId("case id 1").withEntityId("entity id 1").withSendDate("2014-01-01").withEntityRegistrationDate("2014-01-01").withReportText("report text 1").withReportSent("false"); reportService.markReportAsSent(mctsReport); verify(allMCTSReports).markReportAsSent(mctsReport); }