@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val action = new SetServiceUnauthorizedRedirectUrlAction(getServicesManager());

        val service = getWebApplicationServiceFactory().createService("https://github.com/apereo/cas");
        WebUtils.putRegisteredService(context, getServicesManager().findServiceBy(service));
        action.execute(context);
        assertNotNull(WebUtils.getUnauthorizedRedirectUrlFromFlowScope(context));
    }
This is {@link SetServiceUnauthorizedRedirectUrlActionTests}.

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