PolygonElement oblong = new OblongImpl(0, 0, WIDTH, HEIGHT, null);
final int density = 10;
final double maxSpacing = Math.min(WIDTH, HEIGHT) / density;
Geometry polygon = oblong.toDenseGeometry(maxSpacing);
assertNotNull(polygon);
assertTrue(polygon instanceof Polygon);
assertTrue(polygon.getCoordinates().length - 1 >= 2 * (WIDTH + HEIGHT) * density);
}