private Result doSearch(Searcher searcher, Query query, int offset, int hits) {
        query.setOffset(offset);
        query.setHits(hits);
        return createExecution(searcher).search(query);
    }
Tests input parameters that should report errors.
container-search/src/test/java/com/yahoo/prelude/searcher/test/PosSearcherTestCase.java