private void assertQueryError(String queryString, String expectedErrorMessage) {
        try {
            newQuery(queryString);
            fail("Above statement should throw");
        } catch (IllegalArgumentException e) {
            // As expected.
            assertEquals(expectedErrorMessage, Exceptions.toMessageString(e));
        }
    }
Test a vertical specific patch, see Tokenizer
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java