editor.drag(100, 20, 130, 20);
editor.click(130, 20);
final SWTBotGefEditPart circuitPart = editor.editParts(instanceOf(CircuitEditPart.class)).get(0);
final SWTBotGefConnectionEditPart wirePart = circuitPart.sourceConnections().get(0);
final Wire wire = (Wire) (wirePart.part()).getModel();
final Connection connection = (Connection) wirePart.part().getFigure();
editor.activateTool("Select");
assertEquals("Select", getActiveToolLabel());
Point startMove = connection.getPoints().getMidpoint().getCopy();
editor.click(startMove.x, startMove.y);
/* we need to wait element selection before proceed or drag will fail */
syncWithUIThread();
assertTrue(editor.selectedEditParts().contains(wirePart));
assertEquals(0, wire.getBendpoints().size());
editor.drag(startMove.x, startMove.y, 130, 250);
/* we need to wait the drag operates */
syncWithUIThread();
assertEquals(1, wire.getBendpoints().size());
/* we do not check the location, as WireBendpoint overrides getLocation to return null */
}