@UdafFactory(description = "collect distinct values of a Bigint field into a single Array")
  public static <T> Udaf<T, List<T>, List<T>> createCollectSetT() {
    return new Collect<>();
  }
@Test
  public void shouldCollectDistinctTimes() {
    final Udaf<Time, List<Time>, List<Time>> udaf = CollectSetUdaf.createCollectSetT();
    final Time[] values = new Time[] {new Time(1), new Time(2)};
    List<Time> runningList = udaf.initialize();
    for (final Time i : values) {
      runningList = udaf.aggregate(i, runningList);
    }
    assertThat(runningList, contains(new Time(1), new Time(2)));
  }