### Question:
UpdateElementPropertyCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return (element instanceof Node ? new UpdateElementPropertyValueCommand(element, field, value) : new UpdateElementPropertyValueCommand(element.getUUID(), field, value)); } UpdateElementPropertyCommand(final Element element,
                                        final String field,
                                        final Object value); Element getElement(); String getField(); Object getValue(); @Override String toString();  }### Answer:
@Test public void testNewGraphCommand() { Command<GraphCommandExecutionContext, RuleViolation> command; String propertyId = "name"; String value = "updated value"; command = new UpdateElementPropertyCommand(element, propertyId, value).newGraphCommand(abstractCanvasHandler); assertEquals(command.getClass(), UpdateElementPropertyValueCommand.class); command = new UpdateElementPropertyCommand(node, propertyId, value).newGraphCommand(abstractCanvasHandler); assertEquals(command.getClass(), UpdateElementPropertyValueCommand.class); }