@Test
public void testEdgeFilter()
{

    Graph graph = createTestGraph(encodingManager);
    LocationIndexTree index = createIndex(graph, -1);
    assertEquals(1, index.findClosest(-.6, -.6, EdgeFilter.ALL_EDGES).getClosestNode());
    assertEquals(2, index.findClosest(-.6, -.6, new EdgeFilter()
    {
        @Override
        public boolean accept( EdgeIteratorState iter )
        {
            return iter.getBaseNode() == 2 || iter.getAdjNode() == 2;
        }
    }).getClosestNode());
}