@Test
public void testGetPathsDirectionEnforcement3()
{

    GraphHopper instance = initSquareGraphInstance(false);
    // Start in middle of edge 4-5 
    GHPoint start = new GHPoint(0.0015, 0.002);
    // End at middle of edge 2-3
    GHPoint end = new GHPoint(0.002, 0.0005);
    // Via Point betweeen 8-7
    GHPoint via = new GHPoint(0.0005, 0.001);
    GHRequest req = new GHRequest().addPoint(start).addPoint(via, 0.).addPoint(end);
    GHResponse response = new GHResponse();
    List<Path> paths = instance.getPaths(req, response);
    assertArrayEquals(new int[]
    {
        10, 5, 6, 7, 11
    }, paths.get(0).calcNodes().toArray());
}