@Test
public void testCoordinateDimensionLineString2D() {

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