@Test
void can_collect_aggregators_in_select_clause() {

  QuerySpecification querySpec = collect(
      "SELECT name, AVG(age), SUM(balance) FROM test GROUP BY name");
  assertEquals(
      ImmutableSet.of(
          alias("AVG(age)", aggregate("AVG", qualifiedName("age"))),
          alias("SUM(balance)", aggregate("SUM", qualifiedName("balance")))),
      querySpec.getAggregators());
}