@Test
public void testCoordinateDimensionGeometryCollectionEmpty() {

    Geometry geom = gf.createGeometryCollection(new Geometry[0]);
    // empty GCs have no sequences to carry dimension, so always report dim=3
    assertEquals(3, CoordinateSequences.coordinateDimension(geom));
}