final int alt = MapMouseEvent.ALT_DOWN_MASK;
final int button1 = MapMouseEvent.BUTTON1;
final int button2 = MapMouseEvent.BUTTON2;
TestHandler handler=new TestHandler();
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 0, 0, none, none, 0), EventType.DOUBLE_CLICK));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 0, 0, none, button1, button1), EventType.PRESSED));
handler.setCurrentShape(handler.getEditBlackboard().getGeoms().get(0).getShell());
handler.getEditBlackboard().addPoint(10,0, handler.getCurrentGeom().getShell());
assertTrue(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.PRESSED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.DRAGGED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.DRAGGED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.EXITED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.MOVED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button1, button1), EventType.RELEASED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10,0, ctrl,button1, button1), EventType.PRESSED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10,0, shift, button1, button1), EventType.PRESSED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10,0, alt, button1, button1), EventType.PRESSED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null,
0, 0, shift|ctrl, button1, button1), EventType.PRESSED));
assertFalse(mode.isValid(handler, new MapMouseEvent(null, 10, 0, none, button2, button2), EventType.PRESSED));
}