@Test
public void testGeodesicLengthForPolygon() throws
                                           Exception {

    // when computing the geodesic length of a given LineString
    final double length = getGeodesicLength(createPolygon(gf,
                                                          createCoordinate(gf,
                                                                           47.226116d,
                                                                           -1.554169d),
                                                          createCoordinate(gf,
                                                                           47.226126d,
                                                                           -1.554097d),
                                                          createCoordinate(gf,
                                                                           47.225527d,
                                                                           -1.553986d),
                                                          createCoordinate(gf,
                                                                           47.225519d,
                                                                           -1.554061d),
                                                          createCoordinate(gf,
                                                                           47.226116d,
                                                                           -1.554169d)));
    // then the computed length should be roughly equals to 148m
    assertEquals(148d,
                 length,
                 1d);
}