### Question:
Location2IDFullWithEdgesIndex implements LocationIndex { @Override public int findID( double lat, double lon ) { return findClosest(lat, lon, EdgeFilter.ALL_EDGES).getClosestNode(); } Location2IDFullWithEdgesIndex( Graph g ); @Override boolean loadExisting(); @Override LocationIndex setResolution( int resolution ); @Override LocationIndex setApproximation( boolean approxDist ); @Override LocationIndex prepareIndex(); @Override int findID( double lat, double lon ); @Override QueryResult findClosest( double queryLat, double queryLon, EdgeFilter filter ); @Override LocationIndex create( long size ); @Override void flush(); @Override void close(); @Override boolean isClosed(); @Override long getCapacity(); @Override void setSegmentSize( int bytes );  }### Answer:
@Test public void testFullIndex() { LocationIndex idx = new Location2IDFullWithEdgesIndex(createSampleGraph(new EncodingManager("CAR"))); assertEquals(5, idx.findID(2, 3)); assertEquals(10, idx.findID(4, 1)); assertEquals(10, idx.findID(3.6, 1.4)); }