ui.dragTo(position1, origin);
assertNotNull(ui.dragWindow);
assertTrue(ui.dragWindow.isVisible());
Point dragWindowPosition1 = ui.dragWindow.getLocation();
Point position2 = new Point(position1);
position2.translate(1, 2);
ui.dragTo(position2, origin);
Point dragWindowPosition2 = ui.dragWindow.getLocation();
position2.translate(-position1.x, -position1.y);
dragWindowPosition2.translate(-dragWindowPosition1.x, -dragWindowPosition1.y);
assertEquals(position2, dragWindowPosition2);