MvelExpression extends AbstractExpression<T> { public T evaluate(Object target, Map<String, Object> variables) { return (T) MVEL.executeExpression(getCompiledExpression(), target, variables); } MvelExpression();  MvelExpression(String expression); T evaluate(Object target, Map<String, Object> variables); void evaluateAndSet(Object target, Object value);  }
@SuppressWarnings("unchecked") @Ignore @Test public void testDynamicObjectEvaluation() { DynamicObject o = new DynamicObject(); o.setInt("a", 1); Expression<Boolean> exp1 = createExpression("a == 1"); Expression<Boolean> exp2 = createExpression("a == 0"); assertTrue(exp1.evaluate(o)); assertFalse(exp2.evaluate(o)); }