LinearRing shell = factory.createLinearRing(new Coordinate[] { new Coordinate(0, 0), new Coordinate(1, 0),
new Coordinate(1, 1), new Coordinate(0, 1), new Coordinate(0, 0), });
Polygon p = factory.createPolygon(shell, null);
MultiPolygon expected =factory.createMultiPolygon(new Polygon[]{p});
Geometry g = layer.getFeatureModel().getGeometry(bean);
Assert.assertTrue(expected.equalsExact(g, 0.00001));
}
@Test
public void simpleFilter() throws Exception {
Filter filter = filterService.createCompareFilter("stringAttr", "=", "bean2");