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

        val saml2Client = (BaseClient) identityProviders.findClient("SAML2Client", webContext).orElseThrow();
        assertTrue(delegatedClientsSaml2EndpointContributor.supports(saml2Client));
        val results = delegatedClientsSaml2EndpointContributor.contribute(saml2Client);
        assertFalse(results.isEmpty());
        assertTrue(results.containsKey("serviceProviderEntityId"));
        assertTrue(results.containsKey("identityProviderEntityId"));
        assertTrue(results.containsKey("identityProviderMetadata"));
    }
This is {@link DelegatedClientsSaml2EndpointContributorTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-saml/src/test/java/org/apereo/cas/web/saml2/DelegatedClientsSaml2EndpointContributorTests.java