### Question:
DRDContextMenuService { public List<DMNDiagramTuple> getDiagrams() { return dmnDiagramsSession.getDMNDiagrams(); } @Inject  DRDContextMenuService(final DMNDiagramsSession dmnDiagramsSession,
                                 final FactoryManager factoryManager,
                                 final Event<DMNDiagramSelected> selectedEvent,
                                 final DMNDiagramUtils dmnDiagramUtils,
                                 final DMNDeepCloneProcess dmnDeepCloneProcess,
                                 final DMNUnmarshaller dmnUnmarshaller); List<DMNDiagramTuple> getDiagrams(); void addToNewDRD(final Collection<Node<? extends Definition<?>, Edge>> selectedNodes); void addToExistingDRD(final DMNDiagramTuple dmnDiagram,
                                 final Collection<Node<? extends Definition<?>, Edge>> selectedNodes); void removeFromCurrentDRD(final Collection<Node<? extends Definition<?>, Edge>> selectedNodes);  }### Answer:
@Test public void testGetDiagrams() { final DMNDiagramTuple dmnDiagramTuple = mock(DMNDiagramTuple.class); when(dmnDiagramsSession.getDMNDiagrams()).thenReturn(Collections.singletonList(dmnDiagramTuple)); final List<DMNDiagramTuple> diagrams = drdContextMenuService.getDiagrams(); assertThat(diagrams).isNotEmpty(); assertThat(diagrams).hasSize(1); assertThat(diagrams).contains(dmnDiagramTuple); }