MVELExpressionEvaluator extends ExpressionEvaluator { @Override public void init() throws Exception { super.init(); _compiledExpression = MVEL.compileExpression(getExpression()); }  @Override void init(); String evaluate(Object information);  }
@Test public void testEvaluateBadExpression() { MVELExpressionEvaluator evaluator=new MVELExpressionEvaluator(); evaluator.setExpression("X X"); try { evaluator.init(); fail("Evaluator should NOT have initialized"); } catch (Exception e) { } }