### Question:
BeanMapExpressionEvaluator extends MVELExpressionEvaluator implements ExecutionContextExpressionEvaluator { public boolean eval(ExecutionContext context) throws ExpressionEvaluationException { return (Boolean) getValue(context); } BeanMapExpressionEvaluator();  BeanMapExpressionEvaluator(String expression); boolean eval(ExecutionContext context); Object getValue(ExecutionContext context); static final String MVEL_EXECUTION_CONTEXT_KEY; }### Answer:
@Test public void testInvalidExpression() { try { new BeanMapExpressionEvaluator("x.y").eval(new HashMap()); fail("Expected ExpressionEvaluationException"); } catch(Exception e) { assertTrue(e instanceof ExpressionEvaluationException); } }