@Udf
  public <T> boolean contains(
      @UdfParameter final List<T> array,
      @UdfParameter final T val
  ) {
    return array != null && array.contains(val);
  }
@Test
  public void shouldFindDoublesInList() {
    assertTrue(udf.contains(Arrays.asList(1.0, 2.0, 3.0), 2.0));
    assertFalse(udf.contains(Arrays.asList(1.0, 2.0, 3.0), 4.0));
    assertFalse(udf.contains(Arrays.asList(1.0, 2.0, 3.0), "1"));
    assertFalse(udf.contains(Arrays.asList(1.0, 2.0, 3.0), "aaa"));
  }