### Question:
IncludedModelsPageStateProviderImpl implements IncludedModelsPageStateProvider { @Override public String getCurrentDiagramNamespace() { return getDiagram().map(diagram -> getDefinitions(diagram).getNamespace().getValue()).orElse(""); } 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 testGetCurrentDiagramNamespace() { final Definitions definitions = mock(Definitions.class); final String expectedNamespace = ": when(dmnGraphUtils.getDefinitions(diagram)).thenReturn(definitions); when(definitions.getNamespace()).thenReturn(new Text(expectedNamespace)); final String actualNamespace = stateProvider.getCurrentDiagramNamespace(); assertEquals(expectedNamespace, actualNamespace); }