@Test
public void lineStringZFromOrdinates() throws Exception {

    double[] ordinates = new double[] {1, 2, -3, 4, 5, -6, 7, 8, -9};
    LineString line = builder.lineStringZ(ordinates);
    
    Coordinate[] coords = line.getCoordinates();
    assertCoordinates(coords, ordinates, 3);
}