PNCSchedulesService { public void deliveryOutcome(String entityId, String date) { logger.info(format("Enrolling mother into Auto Close PNC schedule. Id: ", entityId)); scheduleService.enroll(entityId, SCHEDULE_AUTO_CLOSE_PNC, date); } @Autowired  PNCSchedulesService(ScheduleTrackingService trackingService, ScheduleService scheduleService, ActionService actionService); void deliveryOutcome(String entityId, String date); void unEnrollFromSchedules(String entityId); void fulfillPNCAutoCloseMilestone(String entityId, String anmIdentifier);  }
@Test public void shouldEnrollMotherIntoSchedulesWhileDeliveryOutcome() { schedulesService.deliveryOutcome("mother id 1", "2012-01-01"); verify(scheduleService).enroll("mother id 1", SCHEDULE_AUTO_CLOSE_PNC, "2012-01-01"); verifyNoMoreInteractions(scheduleTrackingService); }