*/
@Test
public void testCreateFeature() throws Exception {
EditBlackboard bb = handler.getEditBlackboard();
EditGeom geom1 = bb.newGeom("newOne", ShapeType.LINE); //$NON-NLS-1$
bb.addPoint(10,10, geom1.getShell());
bb.addPoint(20,10, geom1.getShell());
bb.addPoint(20,20, geom1.getShell());
bb.addPoint(10,10, geom1.getShell());
EditGeom geom2 = bb.newGeom(feature.getID(), null);
bb.addPoint(100,100, geom2.getShell());
bb.addPoint(200,100, geom2.getShell());
bb.addPoint(200,200, geom2.getShell());
bb.addPoint(100,100, geom2.getShell());
handler.setCurrentShape(geom2.getShell());
AcceptChangesBehaviour behaviour=new AcceptChangesBehaviour(LineString.class, false);
UndoableMapCommand command = behaviour.getCommand(handler);
command.setMap((Map) handler.getContext().getMap());
command.run(new NullProgressMonitor());