@Test
    void verifyResumeOnFailureExternal() throws Throwable {
        val script = """
            def shouldResumeOnFailure(Object[] args) { def failure = args[0]\s
              return failure != null\s
            }""";

        val scriptFile = Files.createTempFile("script2", ".groovy").toFile();
        FileUtils.write(scriptFile, script, StandardCharsets.UTF_8);
        val policy = new GroovyScriptAuthenticationPolicy("file:" + scriptFile.getCanonicalPath());
        assertTrue(policy.shouldResumeOnFailure(new RuntimeException()));
    }
This is {@link GroovyScriptAuthenticationPolicyTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/policy/GroovyScriptAuthenticationPolicyTests.java