### Question:
ClearCommand extends AbstractCanvasGraphCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { final String rootUUID = context.getDiagram().getMetadata().getCanvasRootUUID(); return new ClearGraphCommand(rootUUID); }  @Override String toString();  }### Answer:
@Test public void testGetGraphCommand() { final ClearGraphCommand graphCommand = (ClearGraphCommand) tested.newGraphCommand(canvasHandler); assertNotNull(graphCommand); assertEquals(CANVAS_ROOT_UUID, graphCommand.getRootUUID()); }