### Question:
DecisionNavigatorNestedItemFactory { CanvasSelectionEvent makeCanvasSelectionEvent(final CanvasHandler canvas, final String uuid) { return new CanvasSelectionEvent(canvas, uuid); } @Inject  DecisionNavigatorNestedItemFactory(final SessionManager sessionManager,
                                              final Event<EditExpressionEvent> editExpressionEvent,
                                              final DMNGraphUtils dmnGraphUtils,
                                              final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                              final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                              final BoxedExpressionHelper helper); DecisionNavigatorItem makeItem(final Node<View, Edge> node); boolean hasNestedElement(final Node<View, Edge> node);  }### Answer:
@Test public void testMakeCanvasSelectionEvent() { final CanvasHandler canvasHandler = mock(CanvasHandler.class); final String uuid = "uuid"; final CanvasSelectionEvent event = factory.makeCanvasSelectionEvent(canvasHandler, uuid); assertEquals(canvasHandler, event.getCanvasHandler()); assertEquals(uuid, event.getIdentifiers().iterator().next()); }