@Test
public void lineStringFromOrdinates() throws Exception {

    double[] ordinates = new double[] {1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0};
    LineString line = builder.lineString(ordinates);
    
    Coordinate[] coords = line.getCoordinates();
    assertCoordinates(coords, ordinates, 2);
}