/**
* Tests if function works correctly for sequences
*/
public void testSequence() throws ExpressionException {
final Function function = new CountFunction();
Value result = function.invoke(expressionContextMock, new Value[]{
factory.createSequence(new Item[]{
factory.createBooleanValue(true),
factory.createStringValue("abc"),
DoubleValue.NOT_A_NUMBER,
factory.createDurationValue(true, 2, 2, 3, 1, 0, 6, 100)