}
}
@Test
public void toGeometry() {
PolygonElement oblong = new OblongImpl(MINX, MINY, WIDTH, HEIGHT, null);
Geometry polygon = oblong.toGeometry();
assertNotNull(polygon);
assertTrue(polygon instanceof Polygon);
Set<Coordinate> polyCoords = new HashSet<Coordinate>(Arrays.asList(polygon.getCoordinates()));
for (Coordinate c : oblong.getVertices()) {
assertTrue(polyCoords.contains(c));
}
}