@Test
    void verifyFailsOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext).withUserAgent().setClientInfo();

        assertNull(delegatedAuthenticationFailureAction.execute(context));
        assertFalse(context.getFlowScope().contains("code"));
        context.setParameter("error_description", "fail");
        context.getFlowScope().put(CasWebflowConstants.ATTRIBUTE_ERROR_ROOT_CAUSE_EXCEPTION, new RuntimeException());

        assertNull(delegatedAuthenticationFailureAction.execute(context));
        assertTrue(context.getFlowScope().contains("code"));
        assertTrue(context.getFlowScope().contains("description"));
    }
This is {@link DelegatedClientAuthenticationFailureActionTests}.

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