*/
@TestInfo(testType = TestInfo.TestType.SYSTEM,
requiresPort = {10000, 10001, 10010, 10011, 10012})
public void testWhatYouAddIsWhatYouGet() throws SearcherException{
Execute.sleep(8000);
GroupedSearchResults sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
assertEquals(0, sr.totalGroupsEstimation());
Execute.sleep(8000);
sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
assertEquals(0, sr.totalGroupsEstimation());
indexer.index(addA);
Execute.sleep(8000);
sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup,1, null, null);
assertEquals(1, sr.totalGroupsEstimation());
sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
assertEquals(0, sr.totalGroupsEstimation());
indexer.index(addB);
Execute.sleep(8000);
sr = searcher.search(new TermQuery("content", "contenta"), 0, 10, noGroup, 1, null, null);
assertEquals(1, sr.totalGroupsEstimation());
sr = searcher.search(new TermQuery("content", "contentb"), 0, 10, noGroup, 1, null, null);
assertEquals(1, sr.totalGroupsEstimation());
}