private void assertParseFail(String where, Throwable expectedException) {
        try {
            parseWhere(where).toString();
            fail("Parse succeeded: " + where);
        } catch (Throwable outer) {
            assertEquals(IllegalInputException.class, outer.getClass());
            assertEquals("Illegal JSON query", outer.getMessage());
            Throwable cause = outer.getCause();
            assertEquals(expectedException.getClass(), cause.getClass());
            assertEquals(expectedException.getMessage(), cause.getMessage());
        }
    }
Tests Query.Select

@author henrhoi
@author bratseth
container-search/src/test/java/com/yahoo/select/SelectTestCase.java