FacetsCollector fc = new FacetsCollector();
searcher.search(query, MultiCollector.wrap(fc, random100Percent, random10Percent));
FastTaxonomyFacetCounts random10FacetCounts = new FastTaxonomyFacetCounts(taxoReader, config, random10Percent);
FastTaxonomyFacetCounts random100FacetCounts = new FastTaxonomyFacetCounts(taxoReader, config, random100Percent);
FastTaxonomyFacetCounts exactFacetCounts = new FastTaxonomyFacetCounts(taxoReader, config, fc);
FacetResult random10Result = random10Percent.amortizeFacetCounts(random10FacetCounts.getTopChildren(10, "iMod10"), config, searcher);
FacetResult random100Result = random100FacetCounts.getTopChildren(10, "iMod10");
FacetResult exactResult = exactFacetCounts.getTopChildren(10, "iMod10");
assertEquals(random100Result, exactResult);
// we should have five children, but there is a small chance we have less.
// (see above).