ActionService { public void markAlertAsInactive(String anmId, String entityId, String scheduleName) { allActions.markAlertAsInactiveFor(anmId, entityId, scheduleName); } @Autowired  ActionService(AllActions allActions, AllMothers allMothers, AllChildren allChildren, AllEligibleCouples allEligibleCouples); List<Action> getNewAlertsForANM(String anmIdentifier, long timeStamp); void alertForBeneficiary(BeneficiaryType beneficiaryType, String caseID, String scheduleName, String visitCode, AlertStatus alertStatus, DateTime startDate, DateTime expiryDate); void markAllAlertsAsInactive(String entityId); void markAlertAsInactive(String anmId, String entityId, String scheduleName); void markAlertAsClosed(String caseId, String anmIdentifier, String visitCode, String completionDate); void closeMother(String caseId, String anmIdentifier, String reasonForClose); void reportForIndicator(String anmIdentifier, ActionData actionData); void deleteReportActions();  }
@Test public void shouldMarkAnAlertAsInactive() throws Exception { service.markAlertAsInactive("ANM 1","Case X", "Schedule 1"); verify(allActions).markAlertAsInactiveFor("ANM 1","Case X", "Schedule 1"); }