### Question:
CreateNodeToolboxAction extends AbstractToolboxAction implements IsToolboxActionDraggable<AbstractCanvasHandler> { @Override @SuppressWarnings("unchecked") public ToolboxAction<AbstractCanvasHandler> onMouseClick(final AbstractCanvasHandler canvasHandler, final String uuid, final MouseClickEvent event) { final GeneralCreateNodeAction action = lookupAction(canvasHandler, uuid); action.executeAction(canvasHandler, uuid, nodeId, edgeId); return this; } @Inject  CreateNodeToolboxAction(final @Any ManagedInstance<GeneralCreateNodeAction> createNodeActions,
                                   final DefinitionUtils definitionUtils,
                                   final ClientTranslationService translationService,
                                   final ClientFactoryManager clientFactoryManager,
                                   final NodeProxy nodeProxy); String getNodeId(); CreateNodeToolboxAction setNodeId(final String nodeId); CreateNodeToolboxAction setEdgeId(final String edgeId); @Override @SuppressWarnings("unchecked") ToolboxAction<AbstractCanvasHandler> onMouseClick(final AbstractCanvasHandler canvasHandler,
                                                             final String uuid,
                                                             final MouseClickEvent event); @Override @SuppressWarnings("unchecked") ToolboxAction<AbstractCanvasHandler> onMoveStart(final AbstractCanvasHandler canvasHandler,
                                                            final String uuid,
                                                            final MouseMoveEvent event); @PreDestroy void destroy(); @Override int hashCode(); @Override boolean equals(final Object o);  }### Answer:
@Test public void testOnMouseClick() { when(canvasLayoutUtils.getNext(eq(canvasHandler), eq(element), eq(targetNode))) .thenReturn(new Point2D(100d, 500d)); final MouseClickEvent event = mock(MouseClickEvent.class); when(event.getX()).thenReturn(100d); when(event.getY()).thenReturn(500d); ToolboxAction<AbstractCanvasHandler> cascade = tested.onMouseClick(canvasHandler, NODE_UUID, event); assertEquals(tested, cascade); verify(action).executeAction(canvasHandler, NODE_UUID, TARGET_NODE_ID, EDGE_ID); }