@Test
// This point already lies on the edge p1-p2, so it should not be snapped at all.
public void testThatSnapReturnsTheCorrectGeoPointsOnTheEdge() {

    final SimpleWaySnap simpleWaySnap = new SimpleWaySnap(new XYPointFactory(), edges);
    NicGeoPoint geoPointIn = new XYPoint(50721722, 7061714);
    NicGeoPoint geoPointOut = simpleWaySnap.snap(geoPointIn);
    assertEquals(50721722, geoPointOut.getLatitudeE6());
    assertEquals(7061714, geoPointOut.getLongitudeE6());
}