/**
* Ensure that multiple values can be accessed via the [number] predicate
* @throws Exception if an error occurs
*/
public void testInvokeSecondValueWithPredicate() throws Exception {
Expression expression = parser.parse(getFunctionQName() +
"('name', 'default')[2]");
addMultiValueExpectations("name", new String[] {
"value", "another value"
});
Value result = expression.evaluate(expressionContext);
Assert.assertTrue("Result not a sequence",
result instanceof Sequence);
Assert.assertEquals("Result not as",