@Ignore
@Test
public void testCutHole() throws Exception {
EditBlackboard editBlackboard = handler.getEditBlackboard();
EditGeom geom = editBlackboard.getGeoms().get(0);
editBlackboard.addPoint(0,0,geom.getShell());
editBlackboard.addPoint(40,0,geom.getShell());
editBlackboard.addPoint(40,40,geom.getShell());
editBlackboard.addPoint(0,40,geom.getShell());
editBlackboard.addPoint(0,0,geom.getShell());
handler.setCurrentShape(geom.getShell());
handler.getMouseTracker().setDragStarted(Point.valueOf(10,10));
MapMouseEvent event=new MapMouseEvent(null, 20,10,MapMouseEvent.NONE,MapMouseEvent.BUTTON1, MapMouseEvent.BUTTON1);
handler.handleEvent(event, EventType.DRAGGED);
event=new MapMouseEvent(null, 20,20,MapMouseEvent.NONE,MapMouseEvent.BUTTON1, MapMouseEvent.BUTTON1);
handler.handleEvent(event, EventType.DRAGGED);
event=new MapMouseEvent(null, 10,20,MapMouseEvent.NONE,MapMouseEvent.BUTTON1, MapMouseEvent.BUTTON1);
handler.handleEvent(event, EventType.DRAGGED);
event=new MapMouseEvent(null, 10,10,MapMouseEvent.NONE,MapMouseEvent.BUTTON1, MapMouseEvent.BUTTON1);
handler.handleEvent(event, EventType.DRAGGED);
handler.handleEvent(event, EventType.RELEASED);
assertEquals(geom, handler.getCurrentGeom());
assertEquals(geom.getHoles().get(0), handler.getCurrentShape());
assertEquals(Point.valueOf(10,10), handler.getCurrentShape().getPoint(0));
assertEquals(Point.valueOf(20,10), handler.getCurrentShape().getPoint(1));
assertEquals(Point.valueOf(20,20), handler.getCurrentShape().getPoint(2));
assertEquals(Point.valueOf(10,20), handler.getCurrentShape().getPoint(3));
}