@Test
    void testCloneWithGroupingExpressionString() {
        Query query = new Query();
        query.getSelect().setGroupingExpressionString("all(group(foo) each(output(count())))");

        Query clone = query.clone();
        assertEquals(clone.getSelect().getGroupingExpressionString(), query.getSelect().getGroupingExpressionString());
    }
Tests Query.Select

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