### Question:
UpdateElementPositionCommand extends AbstractGraphCommand { public Node<?, Edge> getNode() { return node; } UpdateElementPositionCommand(final @MapsTo("uuid") String uuid,
                                        final @MapsTo("location") Point2D location,
                                        final @MapsTo("previousLocation") Point2D previousLocation);  UpdateElementPositionCommand(final Node<? extends View<?>, Edge> node,
                                        final Point2D location); Point2D getLocation(); Point2D getPreviousLocation(); Node<?, Edge> getNode(); String getUuid(); @Override @SuppressWarnings("unchecked") CommandResult<RuleViolation> execute(final GraphCommandExecutionContext context); @Override CommandResult<RuleViolation> undo(final GraphCommandExecutionContext context); static Bounds computeCandidateBounds(final Element<? extends View<?>> element,
                                                final Point2D location); @Override String toString();  }### Answer:
@Test(expected = BadCommandArgumentsException.class) public void testAllowNodeNotFound() { this.tested = new UpdateElementPositionCommand(UUID, LOCATION, PREVIOUS_LOCATION); when(graphIndex.getNode(eq(UUID))).thenReturn(null); tested.allow(graphCommandExecutionContext); }