@Test
    void verifyScript() throws Throwable {
        val context = getMockRequestContext();
        WebUtils.putRegisteredService(context, RegisteredServiceTestUtils.getRegisteredService());
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(), context);
        val url = new URI("classpath:UnauthorizedServiceUrl.groovy");
        WebUtils.putUnauthorizedRedirectUrlIntoFlowScope(context, url);
        assertNull(action.execute(context));
        assertEquals("https://apereo.org/cas", WebUtils.getUnauthorizedRedirectUrlFromFlowScope(context).toASCIIString());
    }
This is {@link RedirectUnauthorizedServiceUrlActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-actions/src/test/java/org/apereo/cas/web/flow/RedirectUnauthorizedServiceUrlActionTests.java