### Question:
CaseManagementProjectDiagramFactory extends BindableDiagramFactory<ProjectMetadata, ProjectDiagram> { @PostConstruct public void init() { this.bpmnDiagramFactory.setDiagramType(CaseManagementDiagram.class); } protected  CaseManagementProjectDiagramFactory(); @Inject  CaseManagementProjectDiagramFactory(final BPMNProjectDiagramFactory bpmnDiagramFactory); @PostConstruct void init(); @Override Class<? extends Metadata> getMetadataType(); @Override ProjectDiagram build(final String name,
                                final ProjectMetadata metadata,
                                final Graph<DefinitionSet, ?> graph);  }### Answer:
@Test public void assertDiagamType() { factory.init(); verify(bpmnDiagramFactory, times(1)).setDiagramType(eq(CaseManagementDiagram.class)); }