@Test
public void testDistanceBetweenTwoLineStrings() throws
                                                Exception {

    // given two LineStrings
    final double distance = distanceTo(createLineString(gf,
                                                        createCoordinate(gf,
                                                                         47.226468d,
                                                                         -1.554996d),
                                                        createCoordinate(gf,
                                                                         47.226600d,
                                                                         -1.554846d)),
                                       createLineString(gf,
                                                        createCoordinate(gf,
                                                                         47.226219d,
                                                                         -1.554430d),
                                                        createCoordinate(gf,
                                                                         47.226237d,
                                                                         -1.554261d),
                                                        createCoordinate(gf,
                                                                         47.226122d,
                                                                         -1.554245d)));
    // then the computed distance should be roughly equals to 59m
    assertEquals(58d,
                 distance,
                 1d);
}