Assert.assertEquals(polygon.toWkt(), feature.getGeometry().toWkt());
}
@Test
public void testMultiPolygon() {
Feature feature = new Feature();
feature.setGeometry((MultiPolygon) multiPolygon.clone());
op.execute(feature);
MultiPolygon m = (MultiPolygon) feature.getGeometry();
Polygon p = (Polygon) m.getGeometryN(index.getGeometryIndex());
LinearRing r = p.getInteriorRingN(index.getInteriorRingIndex());
Assert.assertEquals(20.0, r.getCoordinateN(index.getCoordinateIndex()).getX(), DELTA);
op.undo(feature);
Assert.assertEquals(multiPolygon.toWkt(), feature.getGeometry().toWkt());
}