private Query searchAndAssertNoErrors(URIBuilder builder) {
        Query query = new Query(builder.toString());
        var searchChain = new Chain<>(new MinimalQueryInserter());
        var context = Execution.Context.createContextStub();
        var execution = new Execution(searchChain, context);
        Result r = execution.search(query);
        var exception = exceptionOf(r);
        assertNull(r.hits().getError(),
                   exception == null ? "No error":
                   exception.getMessage() + "\n" + Arrays.toString(exception.getStackTrace()));
        return query;
    }
Tests YQL expressions where a list of terms are supplied by indirection

@author bratseth
container-search/src/test/java/com/yahoo/search/yql/TermListTestCase.java