@Test
    void verifyOperationWithClient() throws Throwable {
        val context = MockRequestContext.create(applicationContext).withUserAgent().setClientInfo();
        context.setParameter("username", "cas@example.org");

        val result = delegatedAuthenticationDiscoveryAction.execute(context);
        assertNotNull(result);
        assertEquals(CasWebflowConstants.TRANSITION_ID_REDIRECT, result.getId());
        assertTrue(context.getRequestScope()
            .contains(DelegatedAuthenticationDynamicDiscoveryProviderLocator.REQUEST_SCOPE_ATTR_PROVIDER_REDIRECT_URL, String.class));
    }
This is {@link DelegatedClientAuthenticationDynamicDiscoveryExecutionActionTests}.

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