editBlackboard.selectionAdd(Point.valueOf(10,10));
editBlackboard.selectionAdd(Point.valueOf(20,10));
EditBlackboard bb = handler.getEditBlackboard();
handler.getMouseTracker().setDragStarted(Point.valueOf(10,10));
MapMouseEvent event = new MapMouseEvent( DISPLAY, 10,11,NONE,BUTTON1, BUTTON1 );
mode.getCommand(handler, event, EventType.DRAGGED);
assertEquals(1, bb.getCoords(10,11).size());
assertTrue(handler.getCurrentShape().hasVertex(Point.valueOf(10,11)));
event = new MapMouseEvent( DISPLAY, 10,12,NONE,BUTTON1, BUTTON1 );
mode.getCommand(handler, event, EventType.DRAGGED);
assertEquals(1, bb.getCoords(10,12).size());
assertTrue(handler.getCurrentShape().hasVertex(Point.valueOf(10,12)));
event = new MapMouseEvent( DISPLAY, 10,13,NONE,BUTTON1, BUTTON1 );
mode.getCommand(handler, event, EventType.DRAGGED);
assertEquals(1, bb.getCoords(10,13).size());
assertTrue(handler.getCurrentShape().hasVertex(Point.valueOf(10,13)));
event = new MapMouseEvent( DISPLAY, 10,14,NONE,BUTTON1, BUTTON1 );
mode.getCommand(handler, event, EventType.DRAGGED);
assertEquals(1, bb.getCoords(10,14).size());
assertTrue(handler.getCurrentShape().hasVertex(Point.valueOf(10,14)));
event = new MapMouseEvent( DISPLAY, 10,15,NONE,BUTTON1, BUTTON1 );
mode.getCommand(handler, event, EventType.DRAGGED);
assertEquals(1, bb.getCoords(10,15).size());
assertTrue(handler.getCurrentShape().hasVertex(Point.valueOf(10,15)));
assertEquals(1, editBlackboard.getCoords(10,15).size());
assertEquals(1, editBlackboard.getCoords(20,15).size());
assertEquals(0, editBlackboard.getCoords(10,10).size());
assertEquals(0, editBlackboard.getCoords(20,10).size());
//test undo first button must release so the Position tracker will execute:
event=new MapMouseEvent( DISPLAY, 10,10,NONE,BUTTON1, BUTTON1 );
EventBehaviour tracker = findPositionTracker();
handler.getContext().getMap().sendCommandSync(tracker.getCommand(handler, event, EventType.RELEASED));
assertEquals(1, editBlackboard.getCoords(10,15).size());
assertEquals(1, editBlackboard.getCoords(20,15).size());