ANCInvestigationsHandler implements FormSubmissionHandler { @Override public void handle(FormSubmission submission) { ancService.ancInvestigations(submission); } @Autowired  ANCInvestigationsHandler(ANCService ancService); @Override void handle(FormSubmission submission);  }
@Test public void shouldDelegateFormSubmissionHandlingToANCService() throws Exception { FormSubmission submission = new FormSubmission("anm id 1", "instance id 1", "anc_investigations", "entity id 1", 0L, "1", null, 0L); handler.handle(submission); verify(ancService).ancInvestigations(submission); }