docs.remove(0);
queryId = new ObjectId();
queryEngine.preQueryActivities(queryId, query, communityIdStrs);
queryEngine.test_CheckIfQueryLaunched("4.1", false); // (ie check no query added - because it was in the cache)
queryEngine.postQueryActivities(queryId, docs, rp);
queryEngine.test_CheckIfDocAdded("4.1", docs);
// (don't clear from cache, next doc should check cache but remove expired value)
// 4.2] Test expired then cached query
// (currently need to clear the doc cache to make this work - see tests that need to be added properly, listed above)
queryEngine.test_cacheClear(false, true, fakeEndpoint.parentSource.getKey());