@Test
    void testNoHitsForResultSet() {
        Query query = createQuery();

        Result originalResult = new Result(query);
        int n1 = 20;
        int n2 = 100;
        addHits(originalResult, "music", n1);
        addHits(originalResult, "other", n2);
        originalResult.setTotalHitCount(n1 + n2);

        docSource.addResult(query, originalResult);

        query.setWindow(0, 30);
        Result result = new Execution(chain, Execution.Context.createContextStub()).search(query);

        HitGroup musicGroup = (HitGroup) result.hits().get("music");
        HitGroup moviesGroup = (HitGroup) result.hits().get("movies");

        assertEquals(15, musicGroup.size());
        assertEquals(0, moviesGroup.size());
    }
Test of MultipleResultsSearcher

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