WorkflowDefinitionService { public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); } @Inject  WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao, Environment env); AbstractWorkflowDefinition<?> getWorkflowDefinition(String type); List<AbstractWorkflowDefinition<? extends WorkflowState>> getWorkflowDefinitions(); void postProcessWorkflowDefinitions(); void addWorkflowDefinition(AbstractWorkflowDefinition<? extends WorkflowState> wd);  }
@Test public void getWorkflowDefinitionReturnsNullWhenTypeIsNotFound() { initializeService(true, true); assertThat(service.getWorkflowDefinition("notFound"), is(nullValue())); }