@Test
    public void testMetadata() throws Exception {
        var metadataGenerator = configuration.toMetadataGenerator();
        val entity = metadataGenerator.buildEntityDescriptor();
        assertNotNull(entity);
        var metadata = metadataGenerator.getMetadata(entity);
        assertNotNull(metadata);

        assertTrue(metadataGenerator.storeMetadata(metadata, true));
        assertThrows(SAMLException.class, metadataGenerator::buildMetadataResolver);
    }
This is {@link SAML2S3MetadataGeneratorIT}.

@author Misagh Moayyed
@since 6.0.4
pac4j-saml/src/test/java/org/pac4j/saml/metadata/s3/SAML2S3MetadataGeneratorIT.java