private Query newQueryFromEncoded(String encodedQueryString, Language language, Linguistics linguistics) {
        Query query = new Query(encodedQueryString);
        query.getModel().setExecution(new Execution(Execution.Context.createContextStub(createIndexFacts(),
                                                                                        linguistics)));
        query.getModel().setLanguage(language);
        return query;
    }
Test a vertical specific patch, see Tokenizer
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java