@Test
public void invokeInsertIntoEmptyList() {

    // According to spec, inserting into empty list shouldn't be possible. For inserting into empty list, user should use append() function.
    FunctionTestUtil.assertResultError(insertBeforeFunction.invoke(Collections.emptyList(), BigDecimal.ONE, null), InvalidParametersEvent.class);
}