UndoableMapCommand command = behavior.getCommand(handler, event, EventType.RELEASED);
command.setMap((Map) handler.getContext().getMap());
if (command instanceof PostDeterminedEffectCommand) {
PostDeterminedEffectCommand c = (PostDeterminedEffectCommand) command;
c.execute(new NullProgressMonitor());
}else{
command.run(new NullProgressMonitor());
}
assertEquals("Current shape should equal new hole", editGeom.getHoles().get(0), handler.getCurrentShape()); //$NON-NLS-1$