@Udf
  public <T> boolean contains(
      @UdfParameter final List<T> array,
      @UdfParameter final T val
  ) {
    return array != null && array.contains(val);
  }
@Test
  public void shouldFindIntegersInList() {
    assertTrue(udf.contains(Arrays.asList(1, 2, 3), 2));
    assertFalse(udf.contains(Arrays.asList(1, 2, 3), 0));
    assertFalse(udf.contains(Arrays.asList(1, 2, 3), "1"));
    assertFalse(udf.contains(Arrays.asList(1, 2, 3), "aa"));
  }