}
public void testNotExpression() throws ExpressionEvaluationException {
log.debug("Testing NotExpression");
try {
new NotExpression(null).evaluate(this.resolver);
fail("NotExpression must throw an exception");
} catch (Exception e) {
// normal
}
try {
new NotExpression(this.notBoolExpr).evaluate(this.resolver);
fail("NotExpression must throw an exception");
} catch (Exception e) {
// normal
}
assertEquals("NotExpression must return false", Boolean.FALSE,
new NotExpression(this.trueExpr).evaluate(this.resolver));
assertEquals("NotExpression must return true", Boolean.TRUE,
new NotExpression(this.falseExpr).evaluate(this.resolver));
}