context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "right"),
factory.createSequence(right));
Expression exp = compileExpression("$left != $right");
Value result = exp.evaluate(context);
// the sequences are not equal as the first item in both
// sequences are not equal. Note these same 2 sequences
// are both equal and not equal.
assertTrue("Sequence comparison failed",