### Question:
CaseManagementDeleteNodeCommand extends DeleteNodeCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new CaseManagementSafeDeleteNodeCommand(candidate, deleteProcessor, options); } CaseManagementDeleteNodeCommand(Node candidate);  CaseManagementDeleteNodeCommand(Node candidate, SafeDeleteNodeCommand.Options options);   }### Answer:
@Test public void testNewGraphCommand() { final Command<GraphCommandExecutionContext, RuleViolation> graphCommand = tested.newGraphCommand(canvasHandler); assertNotNull(graphCommand); assertTrue(graphCommand instanceof CaseManagementSafeDeleteNodeCommand); assertEquals(candidate, ((CaseManagementSafeDeleteNodeCommand) graphCommand).getNode()); }