public LocationIndex prepareIndex() {
        return prepareIndex(EdgeFilter.ALL_EDGES);
    }
@Test
    public void testMoreReal() {
        BaseGraph graph = new BaseGraph.Builder(encodingManager).create();
        NodeAccess na = graph.getNodeAccess();
        na.setNode(1, 51.2492152, 9.4317166);
        na.setNode(0, 52, 9);
        na.setNode(2, 51.2, 9.4);
        na.setNode(3, 49, 10);

        graph.edge(1, 0).set(speedEnc, 60, 60);
        graph.edge(0, 2).set(speedEnc, 60, 60);
        graph.edge(0, 3).set(speedEnc, 60, 60).setWayGeometry(Helper.createPointList(51.21, 9.43));
        LocationIndex index = createIndexNoPrepare(graph, 500000).prepareIndex();
        assertEquals(1, findClosestEdge(index, 51.2, 9.4));
    }