### Question:
IncludedModelsPageStateProviderImpl implements IncludedModelsPageStateProvider { public List<Import> getImports() { return getDiagram() .map(this::getImports) .orElse(emptyList()); } IncludedModelsPageStateProviderImpl(); @Inject  IncludedModelsPageStateProviderImpl(final DMNGraphUtils dmnGraphUtils,
                                               final IncludedModelsFactory factory,
                                               final DMNDiagramsSession dmnDiagramsSession); @Override String getCurrentDiagramNamespace(); @Override List<BaseIncludedModelActiveRecord> generateIncludedModels(); List<Import> getImports(); Optional<Diagram> getDiagram();  }### Answer:
@Test public void testGetImportsWhenDiagramIsNotPresent() { when(dmnDiagramsSession.getDRGDiagram()).thenReturn(null); final List<Import> actualImports = stateProvider.getImports(); final List<Import> expectedImports = emptyList(); assertEquals(expectedImports, actualImports); }