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