@Test
public void testCoordinateDimensionPolygonEmpty() {

    Geometry geom = gf.createPolygon(gf.createLinearRing((Coordinate[]) null), null);
    // empty geometries using CoordinateArraySequence always report 3
    assertEquals(3, CoordinateSequences.coordinateDimension(geom));
}