### Question:
SpELRule extends BasicRule { @Override public void execute(Facts facts) throws Exception { for (Action action : actions) { action.execute(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 whenTheConditionIsTrue_thenActionsShouldBeExecuted() throws Exception { Person foo = new Person("foo", 20); facts.put("person", foo); spelRule.execute(facts); assertThat(foo.isAdult()).isTrue(); }