@Test
public void testMVELFunctionExecution() throws Exception {

    // given
    Action printAction = new MVELAction("def hello() { System.out.println(\"Hello from MVEL!\"); }; hello();");
    Facts facts = new Facts();
    // when
    printAction.execute(facts);
    // then
    assertThat(systemOutRule.getLog()).contains("Hello from MVEL!");
}