PNCRegistrationOAHandler implements FormSubmissionHandler { @Override public void handle(FormSubmission submission) { childService.pncRegistrationOA(submission); } PNCRegistrationOAHandler(ChildService childService); @Override void handle(FormSubmission submission);  }
@Test public void shouldDelegateFormSubmissionHandlingToChildService() throws Exception { FormSubmission submission = create().withFormName("pnc_registration_oa").withInstanceId("instance id 1").withVersion("122").build(); handler.handle(submission); verify(childService).pncRegistrationOA(submission); }