public void readGeometry() throws LayerException {
Object bean = layer.read("1");
GeometryFactory factory = new GeometryFactory(new PrecisionModel(), 4326);
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));
}