AsyncIndexInfoServiceImpl implements AsyncIndexInfoService { @Override public Map<String, Long> getIndexedUptoPerLane() { return getIndexedUptoPerLane(nodeStore.getRoot()); } AsyncIndexInfoServiceImpl();  AsyncIndexInfoServiceImpl(NodeStore nodeStore); @Override Iterable<String> getAsyncLanes(); @Override Iterable<String> getAsyncLanes(NodeState root); @Override AsyncIndexInfo getInfo(String name); @Override AsyncIndexInfo getInfo(String name, NodeState root); @Override Map<String, Long> getIndexedUptoPerLane(); @Override Map<String, Long> getIndexedUptoPerLane(NodeState root);  }
@Test public void indexedUpto() throws Exception{ AsyncIndexUpdate async = new AsyncIndexUpdate("async", store, provider); async.run(); AsyncIndexUpdate async2 = new AsyncIndexUpdate("foo-async", store, provider); async2.run(); Map<String, Long> result = service.getIndexedUptoPerLane(); assertFalse(result.isEmpty()); assertTrue(result.get("async") > -1); assertTrue(result.get("foo-async") > -1); }