* Tests that failure occurs when function is given three arguments.
*/
public void testThreeArguments() throws Exception {
try {
ExpressionContext context = createExpressionContext();
ExpressionFactory factory = context.getFactory();
Sequence sequence = createSequence(factory,
new String[]{"xxxxxxxxxx"});
Value pattern = factory.createStringValue("xxx");
Function tokenize = new TokenizeFunction();
Value retVal = tokenize.invoke(context,
new Value[]{sequence, pattern, pattern});
fail("Should have failed when invoked with three arguments");
} catch (ExpressionException expected) {