@Test
    void testSync() {
        Query query = new Query("?query=test");
        Searcher searcher = new ResultProducingSearcher();
        Result result = new Execution(searcher, Execution.Context.createContextStub()).search(query);

        assertEquals(1, result.hits().size());
        assertEquals("hello", result.hits().get(0).getField("test"));
    }
Test for aynchrounous execution

@author Arne Bergene Fossaa
container-search/src/test/java/com/yahoo/search/searchchain/AsyncExecutionTestCase.java