assertNotNull(eval);
assertTrue(((Boolean) eval.eval(ctx, "${1+1 eq 2}")).booleanValue());
}
public void testErrorMessage() {
Evaluator eval = new ELEvaluator();
assertNotNull(eval);
try {
eval.eval(ctx, BAD_EXPRESSION);
fail("ELEvaluator should throw SCXMLExpressionException");
} catch (SCXMLExpressionException e) {
assertTrue("ELEvaluator: Incorrect error message",
e.getMessage().startsWith("eval('" + BAD_EXPRESSION + "'):"));
}