@Test
public void testDistanceBetweenTwoPolygons() throws
                                             Exception {

    // given two Polygons
    final double distance = distanceTo(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)),
                                       createPolygon(gf,
                                                     createCoordinate(gf,
                                                                      47.226219d,
                                                                      -1.554430d),
                                                     createCoordinate(gf,
                                                                      47.226237d,
                                                                      -1.554261d),
                                                     createCoordinate(gf,
                                                                      47.226122d,
                                                                      -1.554245d),
                                                     createCoordinate(gf,
                                                                      47.226106d,
                                                                      -1.554411d),
                                                     createCoordinate(gf,
                                                                      47.226219d,
                                                                      -1.554430d)));
    // then the computed distance should be roughly equals to 19m
    assertEquals(19d,
                 distance,
                 1d);
}