@Test
public void testDistanceBetweenPointAndLineString() throws
                                                    Exception {

    // given Point and LineString
    final double distance1 = distanceTo(createPoint(gf,
                                                    47.225782d,
                                                    -1.554476d),
                                        createLineString(gf,
                                                         createCoordinate(gf,
                                                                          47.226468d,
                                                                          -1.554996d),
                                                         createCoordinate(gf,
                                                                          47.226600d,
                                                                          -1.554846d)));
    // then the computed distance should be roughly equals to 90m
    assertEquals(90d,
                 distance1,
                 1d);
    // given LineString and Point
    final double distance2 = distanceTo(createLineString(gf,
                                                         createCoordinate(gf,
                                                                          47.226468d,
                                                                          -1.554996d),
                                                         createCoordinate(gf,
                                                                          47.226600d,
                                                                          -1.554846d)),
                                        createPoint(gf,
                                                    47.225782d,
                                                    -1.554476d));
    // then the computed distance should be roughly equals to 90m
    assertEquals(90d,
                 distance2,
                 1d);
}