@Test
public void testSpELActionExecutionWithFailure() {

    // given
    Action action = new SpELAction("#{ T(org.jeasy.rules.spel.Person).sayHi() }");
    Facts facts = new Facts();
    Person foo = new Person("foo", 20);
    facts.put("person", foo);
    // when
    assertThatThrownBy(() -> action.execute(facts))
            // then
            .isInstanceOf(Exception.class)
            .hasMessage("EL1004E: Method call: Method sayHi() cannot be found on type org.jeasy.rules.spel.Person");
}