### Question:
BusinessProcessFormModelHandler extends AbstractJBPMFormModelHandler<BusinessProcessFormModel> { @Override public void checkSourceModel() throws SourceFormModelNotFoundException { if (getSourceModel() == null) { String[] params = new String[]{formModel.getProcessId()}; throw new SourceFormModelNotFoundException(JBPMFormsIntegrationBackendConstants.MISSING_PROCESS_SHORT_KEY, params, JBPMFormsIntegrationBackendConstants.MISSING_PROCESS_FULL_KEY, params, JBPMFormsIntegrationBackendConstants.PROCESS_KEY, formModel); } } @Inject  BusinessProcessFormModelHandler(KieModuleService projectService,
                                           ModuleClassLoaderHelper classLoaderHelper,
                                           FieldManager fieldManager,
                                           BPMFinderService bpmFinderService); @Override Class<BusinessProcessFormModel> getModelType(); @Override FormModelHandler<BusinessProcessFormModel> newInstance(); @Override void checkSourceModel();  }### Answer:
@Test public void testCheckModelSource() { when(finderService.getModelForProcess(any(), any())).thenReturn(getProcessModel()); Assertions.assertThatCode(() -> handler.checkSourceModel()) .doesNotThrowAnyException(); when(finderService.getModelForProcess(any(), any())).thenReturn(null); Assertions.assertThatThrownBy(() -> handler.checkSourceModel()) .isInstanceOf(SourceFormModelNotFoundException.class); }