@Test
public void invokeWithSortFunction() {

    FunctionTestUtil.assertResultList(
            sortFunction.invoke(null, Arrays.asList(10, 4, 5, 12), getBooleanFunction(true)), Arrays.asList(12, 5, 4, 10));
    FunctionTestUtil.assertResultList(
            sortFunction.invoke(null, Arrays.asList(10, 4, 5, 12), getBooleanFunction(false)), Arrays.asList(10, 4, 5, 12));
}