@UdafFactory(description = "collect values of a field into a single Array")
  public static <T> TableUdaf<T, List<T>, List<T>> createCollectListT() {
    return new Collect<>();
  }
@Test
  public void shouldRespectSizeLimitString() {
    final TableUdaf<Integer, List<Integer>, List<Integer>> udaf = CollectListUdaf.createCollectListT();
    ((Configurable) udaf).configure(ImmutableMap.of(CollectListUdaf.LIMIT_CONFIG, "10"));

    List<Integer> runningList = udaf.initialize();
    for (int i = 1; i < 25; i++) {
      runningList = udaf.aggregate(i, runningList);
    }
    assertThat(runningList, hasSize(10));
    assertThat(runningList, hasItem(1));
    assertThat(runningList, hasItem(10));
    assertThat(runningList, not(hasItem(11)));
  }