@Test
    void verifySaml2IdentityProvidersViaAggregate() throws Exception {
        val context = MockRequestContext.create();
        val saml2Config = Saml2TestClientsBuilder.newSAML2Configuration("src/test/resources/idp-metadata-aggregate.xml");
        val saml2Client = new SAML2Client(saml2Config);
        saml2Client.setCallbackUrl("https://callback.example.org");
        saml2Client.setName("SAML2ClientDiscoveryAggregate");
        val parser = SamlIdentityProviderEntityParser.fromClient(saml2Client);
        assertEquals(2, parser.resolveEntities(context.getHttpServletRequest(), context.getHttpServletResponse()).size());
    }
This is {@link SamlIdentityProviderEntityParserTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp-discovery/src/test/java/org/apereo/cas/entity/SamlIdentityProviderEntityParserTests.java