/**
* Test for the not function in expressions
* @throws Exception if an error occurs
*/
public void testNot() throws Exception {
Value one = factory.createIntValue(1);
context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "myVar"),
one);
Expression exp = compileExpression("not(3 < $myVar)");
Value result = exp.evaluate(context);
assertTrue("fn:not expression should result in a boolean value",
result instanceof BooleanValue);
assertTrue("fn:not expression result should be true",