### Question:
DMNDiagramsSessionState { void clear() { diagramsByDiagramId.clear(); dmnDiagramsByDiagramId.clear(); } @Inject  DMNDiagramsSessionState(final DMNDiagramUtils dmnDiagramUtils); Diagram getDRGDiagram();  }### Answer:
@Test public void testClear() { sessionState.clear(); assertEquals(0, sessionState.getDiagramsByDiagramId().size()); assertEquals(0, sessionState.getDMNDiagramsByDiagramId().size()); }