### Question:
JuelExpressionEvaluator extends DefaultExpressionEvaluator { @Override public <T> T evaluate(Expression expression, ExecutionContext context, Class<T> resultType) { if (expression instanceof JuelExpression) { return evaluateJuel(((JuelExpression) expression).getString(), context, resultType); } return super.evaluate(expression, context, resultType); }  @Override T evaluate(Expression expression, ExecutionContext context, Class<T> resultType);  }### Answer:
@Test public void shouldEvaluateEqualsExpression() { JuelExpression fooEqualsFour = new JuelExpression("foo == 4"); BrainslugExecutionContext context = testContext(); context.setProperty("foo", 4); Boolean result = evaluator.evaluate(fooEqualsFour, context, Boolean.class); assertThat(result).isTrue(); }
@Test public void shouldEvaluateContainsExpression() { JuelExpression fooEqualsFour = new JuelExpression("bar.contains('aTe')"); BrainslugExecutionContext context = testContext(); context.setProperty("bar", "aText"); Boolean result = evaluator.evaluate(fooEqualsFour, context, Boolean.class); assertThat(result).isTrue(); }