@Test
public void testCoordinateDimensionLineString1D() {

    Geometry geom = gf.createLineString(new Coordinate[] {
            new Coordinate(1, Coordinate.NULL_ORDINATE),
            new Coordinate(3, Coordinate.NULL_ORDINATE) });
    assertEquals(1, CoordinateSequences.coordinateDimension(geom));
}