### Question:
DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject  DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory,
                                        final Event<DMNDiagramSelected> selectedEvent,
                                        final DMNDiagramsSession dmnDiagramsSession); DecisionNavigatorItem makeItem(final Node<View, Edge> node); DecisionNavigatorItem makeRoot(final DMNDiagramTuple diagramTuple); DecisionNavigatorItem makeSeparator(final String label);  }### Answer:
@Test public void testGetOnClickAction() { final DMNDiagramElement dmnDiagramElement = mock(DMNDiagramElement.class); factory.getOnClickAction(dmnDiagramElement).execute(); verify(selectedEvent).fire(diagramSelectedArgumentCaptor.capture()); assertEquals(dmnDiagramElement, diagramSelectedArgumentCaptor.getValue().getDiagramElement()); }