@Test
    void verifyOperation() throws Exception {
        val context = MockRequestContext.create(applicationContext).withUserAgent();
        val webContext = new JEEContext(context.getHttpServletRequest(), context.getHttpServletResponse());

        val oauthClient = identityProviders.findClient("OAuth20Client", webContext).map(BaseClient.class::cast).orElseThrow();
        val googleClient = identityProviders.findClient("GoogleClient", webContext).map(BaseClient.class::cast).orElseThrow();
        assertTrue(delegatedClientsOidcEndpointContributor.supports(googleClient));
        assertTrue(delegatedClientsOidcEndpointContributor.supports(oauthClient));

        assertFalse(delegatedClientsOidcEndpointContributor.contribute(oauthClient).isEmpty());
        assertFalse(delegatedClientsOidcEndpointContributor.contribute(googleClient).isEmpty());
    }
This is {@link DelegatedClientsOidcEndpointContributorTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-oidc/src/test/java/org/apereo/cas/web/DelegatedClientsOidcEndpointContributorTests.java