private void addHits(Result result, String docName, int numHits,
                         int baseRelevancy) {
        for (int i=0; i<numHits; ++i) {
            result.hits().add(createHit("foo" + i,
                                    baseRelevancy - i,
                                    docName));
        }
    }
Test of MultipleResultsSearcher

@author Tony Vaagenes
container-search/src/test/java/com/yahoo/prelude/searcher/test/MultipleResultsTestCase.java