for (ObjectId commId: source.getCommunityIds()) {
communityIdStrs[i] = commId.toString();
i++;
}
testFederatedQuery.setTestMode(true);
testFederatedQuery.preQueryActivities(queryId, testQuery, communityIdStrs);
StatisticsPojo stats = new StatisticsPojo();
stats.setSavedScores(0, 0);
rp.setStats(stats);
ArrayList<BasicDBObject> toAddTemp = new ArrayList<BasicDBObject>(1);
testFederatedQuery.postQueryActivities(queryId, toAddTemp, rp);