*/
@Test
public void testGetCommand() {
EditGeom geom = handler.getCurrentGeom();
PrimitiveShape hole = geom.newHole();
EditBlackboard bb = handler.getEditBlackboard();
bb.addPoint(5, 5, hole);
bb.addPoint(25, 5, hole);
bb.addPoint(25, 25, hole);
bb.addPoint(5, 25, hole);
bb.addPoint(5, 5, hole);
handler.getMouseTracker().setDragStarted(Point.valueOf(10, 10));
MapMouseEvent event = new MapMouseEvent(null, 20, 10, MapMouseEvent.ALT_DOWN_MASK
| MapMouseEvent.CTRL_DOWN_MASK, MapMouseEvent.BUTTON1, MapMouseEvent.BUTTON1);
handler.handleEvent(event, EventType.DRAGGED);
assertEquals(2, handler.getEditBlackboard().getCoords(10, 0).size());
assertEquals(1, handler.getEditBlackboard().getCoords(60, 0).size());
assertEquals(1, handler.getEditBlackboard().getCoords(60, 50).size());
assertEquals(1, handler.getEditBlackboard().getCoords(10, 50).size());
assertEquals(2, handler.getEditBlackboard().getCoords(15, 5).size());
assertEquals(1, handler.getEditBlackboard().getCoords(35, 5).size());
assertEquals(1, handler.getEditBlackboard().getCoords(35, 25).size());
assertEquals(1, handler.getEditBlackboard().getCoords(15, 25).size());
assertEquals(0, handler.getEditBlackboard().getCoords(0, 0).size());
assertEquals(0, handler.getEditBlackboard().getCoords(50, 0).size());
assertEquals(0, handler.getEditBlackboard().getCoords(50, 50).size());
assertEquals(0, handler.getEditBlackboard().getCoords(0, 50).size());
assertEquals(0, handler.getEditBlackboard().getCoords(5, 5).size());
assertEquals(0, handler.getEditBlackboard().getCoords(25, 5).size());
assertEquals(0, handler.getEditBlackboard().getCoords(25, 25).size());
assertEquals(0, handler.getEditBlackboard().getCoords(5, 25).size());
PrimitiveShape shell = handler.getCurrentShape();
assertEquals(Point.valueOf(10, 0), shell.getPoint(0));
assertEquals(Point.valueOf(60, 0), shell.getPoint(1));
assertEquals(Point.valueOf(60, 50), shell.getPoint(2));
assertEquals(Point.valueOf(10, 50), shell.getPoint(3));
assertEquals(Point.valueOf(10, 0), shell.getPoint(4));
assertEquals(Point.valueOf(15, 5), hole.getPoint(0));
assertEquals(Point.valueOf(35, 5), hole.getPoint(1));
assertEquals(Point.valueOf(35, 25), hole.getPoint(2));
assertEquals(Point.valueOf(15, 25), hole.getPoint(3));
assertEquals(Point.valueOf(15, 5), hole.getPoint(4));