@Test
public void testGeodesicAreaForLineString() throws
                                            Exception {

    // when computing the geodesic area of a given LineString (no closed)
    final double area1 = getGeodesicArea(createLineString(gf,
                                                          createCoordinate(gf,
                                                                           47.226116d,
                                                                           -1.554169d),
                                                          createCoordinate(gf,
                                                                           47.226126d,
                                                                           -1.554097d),
                                                          createCoordinate(gf,
                                                                           47.225527d,
                                                                           -1.553986d)));
    // then the computed area should be roughly equals to 186m
    assertEquals(186d,
                 area1,
                 1d);
    // when computing the geodesic area of the same LineString but closed
    final double area2 = getGeodesicArea(createLineString(gf,
                                                          createCoordinate(gf,
                                                                           47.226116d,
                                                                           -1.554169d),
                                                          createCoordinate(gf,
                                                                           47.226126d,
                                                                           -1.554097d),
                                                          createCoordinate(gf,
                                                                           47.225527d,
                                                                           -1.553986d),
                                                          createCoordinate(gf,
                                                                           47.226116d,
                                                                           -1.554169d)));
    // then the computed area should be the same
    assertEquals(area1,
                 area2,
                 0d);
}