### Question:
CaseManagementCanvasCommandFactory extends LienzoCanvasCommandFactory { @Override public CanvasCommand<AbstractCanvasHandler> deleteNode(Node candidate) { return new CaseManagementDeleteNodeCommand(candidate); } @Inject  CaseManagementCanvasCommandFactory(final ManagedInstance<ChildrenTraverseProcessor> childrenTraverseProcessors,
                                              final ManagedInstance<ViewTraverseProcessor> viewTraverseProcessors); @Override CanvasCommand<AbstractCanvasHandler> addNode(final Node candidate,
                                                        final String shapeSetId); @Override CanvasCommand<AbstractCanvasHandler> draw(); @Override CanvasCommand<AbstractCanvasHandler> addChildNode(final Node parent,
                                                             final Node child,
                                                             final String shapeSetId); @Override CanvasCommand<AbstractCanvasHandler> setChildNode(final Node parent,
                                                             final Node child); CanvasCommand<AbstractCanvasHandler> setChildNode(final Node<View<?>, Edge> parent,
                                                             final Node<View<?>, Edge> child,
                                                             final Optional<Node<View<?>, Edge>> last,
                                                             final OptionalInt index,
                                                             final Optional<Node<View<?>, Edge>> originalParent,
                                                             final OptionalInt originalIndex); @Override CanvasCommand<AbstractCanvasHandler> removeChild(final Node parent,
                                                            final Node candidate); @Override //This command is used to update a Node location following 'Drag', 'Resize' or 'Add from Palette' operations //Case Management does not update the location of any Nodes, preserving the layout information that may have //been set using the full BPMN2 editor. This command equates to a NOP for Case Management. CanvasCommand<AbstractCanvasHandler> updatePosition(final Node<View<?>, Edge> element,
                                                               final Point2D location); @Override CanvasCommand<AbstractCanvasHandler> cloneNode(Node candidate, String parentUuid, Point2D cloneLocation, Consumer<Node> callback); @Override CanvasCommand<AbstractCanvasHandler> delete(Collection<Element> candidates); @Override CanvasCommand<AbstractCanvasHandler> deleteNode(Node candidate); @Override CanvasCommand<AbstractCanvasHandler> clearCanvas();  }### Answer:
@Test public void checkDeleteNode() { final CanvasCommand<AbstractCanvasHandler> command = factory.deleteNode(child); assertNotNull(command); assertTrue(command instanceof CaseManagementDeleteNodeCommand); }