@Udf
  public <T> boolean contains(
      @UdfParameter final List<T> array,
      @UdfParameter final T val
  ) {
    return array != null && array.contains(val);
  }
@Test
  public void shouldReturnFalseOnEmptyList() {
    assertFalse(udf.contains(Collections.emptyList(), true));
    assertFalse(udf.contains(Collections.emptyList(), false));
    assertFalse(udf.contains(Collections.emptyList(), null));
    assertFalse(udf.contains(Collections.emptyList(), 1.0));
    assertFalse(udf.contains(Collections.emptyList(), 100));
    assertFalse(udf.contains(Collections.emptyList(), "abc"));
    assertFalse(udf.contains(Collections.emptyList(), ""));
  }