@Test
        void verifyExec() {
            val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
            try (val shell = scriptFactory.fromScript("println 'test'")) {
                assertNotNull(shell.getResource());
                assertNull(shell.getCompiledScript());
                assertDoesNotThrow(() -> shell.execute(ArrayUtils.EMPTY_OBJECT_ARRAY));
                assertNotNull(shell.getCompiledScript());
                assertNotNull(shell.toString());
            }
        }
This is {@link GroovyShellScriptTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-scripting/src/test/java/org/apereo/cas/util/GroovyShellScriptTests.java