### Question:
CloneNodeCommand extends AbstractCanvasGraphCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return this.command; } @SuppressWarnings("unchecked")  CloneNodeCommand(final Node candidate, final String parentUuid, final Point2D cloneLocation, final Consumer<Node> cloneNodeCommandCallback, final ManagedInstance<ChildrenTraverseProcessor> childrenTraverseProcessor); CloneCanvasNodeCommand getCloneCanvasNodeCommand(Node parent, Node clone, String shapeId); ManagedInstance<ChildrenTraverseProcessor> getChildrenTraverseProcessor(); Node getCandidate(); @Override String toString();  }### Answer:
@Test public void testNewCanvasCommand() { Command<AbstractCanvasHandler, CanvasViolation> canvasCommand = cloneNodeCommand.newCanvasCommand(canvasHandler); assertTrue(canvasCommand instanceof CompositeCommand); }