@Test
    void testOldStyleSelect() {
        // The same as testOldStyleSelectAndNativeQueryProfileType but not inheriting native
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfileType type = new QueryProfileType("mytype");
        QueryProfile profile = new QueryProfile("default");
        profile.setType(type);
        registry.register(profile);
        registry.getTypeRegistry().register(type);
        CompiledQueryProfileRegistry cRegistry = registry.compile();
        Query query = new Query(httpEncode("?query=sddocname:sentence&select=all(group(context_id) max(10) each(each(output(summary()))))"),
                cRegistry.findQueryProfile("default"));
        GroupingQueryParser parser = new GroupingQueryParser();
        parser.search(query, new Execution(parser, Execution.Context.createContextStub()));
        assertEquals("[all(group(context_id) max(10) each(each(output(summary())))), all(group(context_id) max(10) each(each(output(summary()))))]",
                query.getSelect().getGrouping().toString());
    }
Test that we get the last value if a parameter is assigned multiple times
container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java