@Test
    void verifyOperation() throws Exception {
        val requestContext = MockRequestContext.create(applicationContext);
        val webContext = new JEEContext(requestContext.getHttpServletRequest(), requestContext.getHttpServletResponse());
        val client = identityProviders.findClient("FakeClient", webContext).map(BaseClient.class::cast).orElseThrow();
        val results = delegatedAuthenticationCredentialExtractor.extract(client, requestContext);
        assertFalse(results.isEmpty());
        assertNotNull(WebUtils.getCredential(requestContext));
        assertEquals(Ordered.LOWEST_PRECEDENCE, delegatedAuthenticationCredentialExtractor.getOrder());
        assertNotNull(delegatedAuthenticationCredentialExtractor.getName());
    }
This is {@link DefaultDelegatedAuthenticationCredentialExtractorTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/authentication/principal/DefaultDelegatedAuthenticationCredentialExtractorTests.java