### Question:
CaseManagementContainmentAcceptorControlImpl extends AbstractAcceptorControl implements ContainmentAcceptorControl<AbstractCanvasHandler> { Command<AbstractCanvasHandler, CanvasViolation> getSetEdgeCommand(final Node<View<?>, Edge> parent, final Node<View<?>, Edge> child, final Optional<Node<View<?>, Edge>> last, final OptionalInt index, final Optional<Node<View<?>, Edge>> originalParent, final OptionalInt originalIndex) { return canvasCommandFactory.setChildNode(parent, child, last, index, originalParent, originalIndex); } @Inject  CaseManagementContainmentAcceptorControlImpl(final @CaseManagementEditor CaseManagementCanvasCommandFactory canvasCommandFactory,
                                                        final CaseManagementContainmentStateHolder state); @Override boolean allow(final Element parent,
                         final Node[] children); @Override boolean accept(final Element parent,
                          final Node[] children);  }### Answer:
@Test public void getSetEdgeCommand() { final Node parent = mock(Node.class); final Node child = mock(Node.class); control.getSetEdgeCommand(parent, child, Optional.empty(), OptionalInt.empty(), Optional.empty(), OptionalInt.empty()); verify(canvasCommandFactory, times(1)).setChildNode(eq(parent), eq(child), eq(Optional.empty()), eq(OptionalInt.empty()), eq(Optional.empty()), eq(OptionalInt.empty())); }