public LocationIndex prepareIndex() {
        return prepareIndex(EdgeFilter.ALL_EDGES);
    }
@Test
    public void testFindingWayGeometry() {
        BaseGraph g = new BaseGraph.Builder(encodingManager).create();
        NodeAccess na = g.getNodeAccess();
        na.setNode(10, 51.2492152, 9.4317166);
        na.setNode(20, 52, 9);
        na.setNode(30, 51.2, 9.4);
        na.setNode(50, 49, 10);
        g.edge(20, 50).set(speedEnc, 60, 60).setWayGeometry(Helper.createPointList(51.25, 9.43));
        g.edge(10, 20).set(speedEnc, 60, 60);
        g.edge(20, 30).set(speedEnc, 60, 60);

        LocationIndex index = createIndexNoPrepare(g, 2000).prepareIndex();
        assertEquals(0, findClosestEdge(index, 51.25, 9.43));
    }