public Void call() throws Exception {
cache1.remove("1"); // cache will now be out of sync with the index
searchManager = Search.getSearchManager(cache1);
Query query = createQueryBuilder().keyword().onField("bar").matching("1").createQuery();
ResultIterator iterator = searchManager.getQuery(query).iterator(new FetchOptions().fetchMode(EAGER));
assertFalse("Iterator should not have elements.", iterator.hasNext());
try {
iterator.next();
fail("Expected NoSuchElementException");
} catch (NoSuchElementException e) {