@Udf
  public <T> boolean contains(
      @UdfParameter final List<T> array,
      @UdfParameter final T val
  ) {
    return array != null && array.contains(val);
  }
@Test
  public void shouldFindStringInList() {
    assertTrue(udf.contains(Arrays.asList("abc", "bd", "DC"), "DC"));
    assertFalse(udf.contains(Arrays.asList("abc", "bd", "DC"), "dc"));
    assertFalse(udf.contains(Arrays.asList("abc", "bd", "1"), 1));
  }