assertTrue(selection.isDragging());
// move it a little too far to the left
Mock mockDiagram = mock(Diagram.class);
mockOperations.expects(atLeastOnce()).method("getDiagram").
will(returnValue(mockDiagram.proxy()));
mockDiagram.expects(atLeastOnce()).method("getOrigin").
will(returnValue(origin));
mockDiagram.expects(atLeastOnce()).method("snap");
selection.updatePosition(-10.0, 10.0);
// and draw it, the selection is within the bounds
Constraint[] params = {eq(0.0), eq(5.0), eq(320.0), eq(420.0), NULL};