@Test
    void globalMaxGroupsCannotBeSetInRequest() {
        try {
            URIBuilder builder = new URIBuilder();
            builder.setPath("search/");
            builder.setParameter("yql", "select foo from bar where baz contains 'cox' " +
                    "| all(group(a) each(output(count())))");
            builder.setParameter("grouping.globalMaxGroups", "-1");
            Query query = new Query(builder.toString());
            execution.search(query);
            fail();
        }
        catch (IllegalInputException e) {
            assertEquals("grouping.globalMaxGroups must be specified in a query profile.", e.getCause().getMessage());
        }
    }
Smoke test for first generation YQL+ integration.
container-search/src/test/java/com/yahoo/search/yql/MinimalQueryInserterTestCase.java