### Question:
SpELRule extends BasicRule { @Override public boolean evaluate(Facts facts) { return condition.evaluate(facts); } SpELRule();  SpELRule(ParserContext parserContext);  SpELRule(BeanResolver beanResolver);  SpELRule(ParserContext parserContext, BeanResolver beanResolver); SpELRule name(String name); SpELRule description(String description); SpELRule priority(int priority); SpELRule when(String condition); SpELRule then(String action); @Override boolean evaluate(Facts facts); @Override void execute(Facts facts);  }### Answer:
@Test public void whenTheRuleIsTriggered_thenConditionShouldBeEvaluated() { Person person = new Person("foo", 20); facts.put("person", person); boolean evaluationResult = spelRule.evaluate(facts); assertThat(evaluationResult).isTrue(); }