@Override
        public Result search(Query query, Execution execution) {
            String sourceName = query.properties().getString("sourceName", "unknown");
            Result result = new Result(query);
            for (int i = 1; i <= query.getHits(); i++) {
                Hit hit = new Hit(sourceName + ":" + i, 1d / i);
                hit.setSource(sourceName);
                result.hits().add(hit);
            }
            return result;
        }
Test for federation searcher. The searcher is also tested in
com.yahoo.prelude.searcher.test.BlendingSearcherTestCase.

@author Arne Bergene Fossaa
container-search/src/test/java/com/yahoo/search/federation/FederationSearcherTestCase.java