@Test
public void testIssue239_and362()
{

    GraphHopperStorage g = createGHStorage(false);
    g.edge(0, 1, 1, true);
    g.edge(1, 2, 1, true);
    g.edge(2, 0, 1, true);
    g.edge(4, 5, 1, true);
    g.edge(5, 6, 1, true);
    g.edge(6, 4, 1, true);
    DijkstraOneToMany algo = (DijkstraOneToMany) createAlgo(g);
    assertEquals(-1, algo.findEndNode(0, 4));
    assertEquals(-1, algo.findEndNode(0, 4));
    assertEquals(1, algo.findEndNode(0, 1));
    assertEquals(1, algo.findEndNode(0, 1));
}