@Test
void should_build_type_mapping_without_bucket() {

  assertThat(
      buildTypeMapping(Arrays.asList(
          named("avg(balance)", new AvgAggregator(
              Arrays.asList(ref("balance", INTEGER)), INTEGER))),
          Collections.emptyList()),
      containsInAnyOrder(
          map("avg(balance)", INTEGER)
      ));
}