@Test
public void invokeMatchNull() {

    FunctionTestUtil.assertResultList(indexOfFunction.invoke(Collections.emptyList(), null), Collections.emptyList());
    FunctionTestUtil.assertResultList(indexOfFunction.invoke(Collections.singletonList("test"), null), Collections.emptyList());
    FunctionTestUtil.assertResultList(
            indexOfFunction.invoke(Arrays.asList("test", null), null),
            Collections.singletonList(BigDecimal.valueOf(2)));
    FunctionTestUtil.assertResultList(
            indexOfFunction.invoke(Arrays.asList(null, "test"), null),
            Collections.singletonList(BigDecimal.ONE));
    FunctionTestUtil.assertResultList(
            indexOfFunction.invoke(Arrays.asList("test", null, BigDecimal.ZERO), null),
            Collections.singletonList(BigDecimal.valueOf(2)));
    FunctionTestUtil.assertResultList(
            indexOfFunction.invoke(Arrays.asList("test", null, null, BigDecimal.ZERO), null),
            Arrays.asList(BigDecimal.valueOf(2), BigDecimal.valueOf(3)));
}