info.setLayers(layers);
mapModel.initialize(info);
mapModel.selectLayer(mapModel.getLayer("testLayer"));
Feature feature = new Feature();
GeometryFactory factory = new GeometryFactory(4326, -1);
LinearRing invalidRing = factory.createLinearRing(new Coordinate[] {new Coordinate(10, 10),
new Coordinate(20, 10), new Coordinate(15, 20)/*, new Coordinate(15, 5)*/});
Polygon inValidPolygon = factory.createPolygon(invalidRing, null);
feature.setGeometry(inValidPolygon);
mapModel.getFeatureEditor().startEditing(new Feature[] {feature}, new Feature[] {feature});
}