@Test
        void verifyClient() {
            val clients = delegatedIdentityProviderFactory.build().stream().map(SAML2Client.class::cast).toList();
            assertEquals(2, clients.size());
            assertTrue(clients.stream().anyMatch(client ->
                client.getCustomProperties().get(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_DISPLAY_NAME).equals("Lafayette College")));
            assertTrue(clients.stream().anyMatch(client ->
                client.getCustomProperties().get(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_DISPLAY_NAME).equals("Cornell University")));

            val metadataResolver = clients.getFirst().getConfiguration().getIdentityProviderMetadataResolver();
            assertNotNull(metadataResolver.getEntityId());
            assertNotNull(metadataResolver.getMetadata());
            assertNotNull(metadataResolver.getEntityDescriptorElement());
        }
This is {@link DelegatedSaml2IdentityProviderTests}.

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