VitaminAHandler implements FormSubmissionHandler { @Override public void handle(FormSubmission submission) { childService.vitaminAProvided(submission); } @Autowired  VitaminAHandler(ChildService childService); @Override void handle(FormSubmission submission);  }
@Test public void shouldDelegateFormSubmissionHandlingToChildService() throws Exception { FormSubmission submission = new FormSubmission("anm id 1", "instance id 1", "vitamin_a", "entity id 1", 0L, "1", null, 0L); handler.handle(submission); verify(childService).vitaminAProvided(submission); }