@Test
    void verifyScript() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val groovyResource = new ClassPathResource("GroovyWebflowAction.groovy");
        val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
        val watchableScript = scriptFactory.fromResource(groovyResource);
        val results = new GroovyScriptWebflowAction(watchableScript, casProperties);
        val result = results.execute(context);
        assertNotNull(result);
        assertEquals("result", result.getId());
    }
This is {@link GroovyScriptWebflowActionTests}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-webflow-api/src/test/java/org/apereo/cas/web/flow/actions/GroovyScriptWebflowActionTests.java