* is specified and default is provided via constructor
* @throws Exception if an error occurs
*/
public void testDefaultInvokeWithNumericPredicateOutOfBounds() throws Exception {
// parse the expression
Expression expression = parser.parse(getFunctionQName() +
"('name', 'default')[2]");
// register the name value pair with the request
addSingleValueExpectations("name", "value");
// evaluate the expression
Value result = expression.evaluate(expressionContext);
assertTrue("Result was not a Sequence instance",
result instanceof Sequence);
Sequence sequence = (Sequence)result;