@Test
        void verifyAuthnFailureProduces() throws Throwable {
            val context2 = getMockRequestContext();
            WebUtils.getHttpServletResponseFromExternalWebflowContext(context2).setStatus(HttpStatus.UNAUTHORIZED.value());
            assertDoesNotThrow(() -> delegatedAuthenticationCreateClientsAction.execute(context2));
            assertFalse(DelegationWebflowUtils.getDelegatedAuthenticationProviderConfigurations(context2).isEmpty());
        }
This is {@link DelegatedAuthenticationGenerateClientsActionTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/web/flow/actions/DelegatedAuthenticationGenerateClientsActionTests.java