* around, then stop the drag at a meltin position.
*/
public void testDragSegmentAndStopAtMeltinPosition() {
node1.setOrigin(10, 10); // (10, 10, 80, 40) -> max (90, 50)
node2.setOrigin(120, 10); // (120, 10, 80, 40) -> max (200, 50)
SimpleConnectionSelection selection = setupConnection();
Point2D oldp1 = conn.getEndPoint1();
Point2D oldp2 = conn.getEndPoint2();
selection.startDragging(105, 30);
assertEquals(3, selection.getEditPoints().size());
assertTrue(selection.isDragging());
selection.updatePosition(120, 50);
selection.updatePosition(110, 40);
selection.updatePosition(106, 31); // melting position
selection.stopDragging(106, 31);
assertFalse(selection.isDragging());
assertEquals(2, conn.getPoints().size());
assertEquals(oldp1, conn.getPoints().get(0));
assertEquals(oldp2, conn.getPoints().get(1));
}