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