### Question:
LocationIndexTree implements LocationIndex { @Override public LocationIndexTree create(long size) { throw new UnsupportedOperationException("Not supported. Use prepareIndex instead."); } LocationIndexTree(Graph g, Directory dir); int getMinResolutionInMeter(); LocationIndexTree setMinResolutionInMeter(int minResolutionInMeter); LocationIndexTree setMaxRegionSearch(int numTiles); @Override LocationIndex setResolution(int minResolutionInMeter); @Override LocationIndex setApproximation(boolean approx); @Override LocationIndexTree create(long size); @Override boolean loadExisting(); @Override void flush(); @Override LocationIndex prepareIndex(); @Override void close(); @Override boolean isClosed(); @Override long getCapacity(); @Override void setSegmentSize(int bytes); double getDeltaLat(); double getDeltaLon(); void query(BBox queryShape, final Visitor function); @Override QueryResult findClosest(final double queryLat, final double queryLon, final EdgeFilter edgeFilter); List<QueryResult> findNClosest(final double queryLat, final double queryLon,
                                          final EdgeFilter edgeFilter, double radius);  }### Answer:
@Test public void testMoreReal() { Graph graph = createGHStorage(EncodingManager.create("car")); 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, 1000, true); graph.edge(0, 2, 1000, true); graph.edge(0, 3, 1000, true).setWayGeometry(Helper.createPointList(51.21, 9.43)); LocationIndex index = createIndex(graph, -1); assertEquals(2, findID(index, 51.2, 9.4)); }