command2.run(new NullProgressMonitor());
command.run(new NullProgressMonitor());
assertEquals(EditState.CREATING, handler.getCurrentState());
assertEquals(1, handler.getEditBlackboard().getGeoms().size());
assertEquals(Point.valueOf(10,10), handler.getEditBlackboard().getGeoms().get(0).getShell().getPoint(0));
SimpleFeature editFeature = handler.getContext().getEditManager().getEditFeature();
assertNull( editFeature );
command.rollback(new NullProgressMonitor());
command2.rollback(new NullProgressMonitor());
assertEquals(editGeom2.getShell().getPoint(0), handler.getCurrentGeom().getShell().getPoint(0));
assertEquals(editGeom2.getShell().getPoint(1), handler.getCurrentGeom().getShell().getPoint(1));
assertEquals(hole.getPoint(0), handler.getCurrentShape().getPoint(0));
assertEquals(hole.getPoint(1), handler.getCurrentShape().getPoint(1));
assertTrue(handler.getCurrentGeom().getHoles().contains(handler.getCurrentShape()));
assertEquals(EditState.CREATING, handler.getCurrentState());
assertEquals(2, bb.getGeoms().size());
editFeature = handler.getContext().getEditManager().getEditFeature();
assertEquals("feature id", feature.getID(), editFeature.getID());
assertFeatureEqual("edit feature",feature, editFeature);
assertEquals(layer, handler.getContext().getEditManager().getEditLayer());
}