@Test
// This point is located so that the nearest point onto the line, on which the edge lies, does NOT lie on
// the edge, i.e. not between the two points of the edge, but outside of it. It needs to be clipped to one of the
// points.
public void testThatSnapReturnsTheCorrectClippedGeoPoints() {

    final SimpleWaySnap simpleWaySnap = new SimpleWaySnap(new XYPointFactory(), edges);
    NicGeoPoint geoPointIn1 = new XYPoint(50720000, 7061000);
    NicGeoPoint geoPointOut1 = simpleWaySnap.snap(geoPointIn1);
    assertEquals(50721722, geoPointOut1.getLatitudeE6());
    assertEquals(7061680, geoPointOut1.getLongitudeE6());
}