@Before
    public void setUp() throws Exception {
        var metadataGenerator = new SAML2S3MetadataGenerator(getClient(), ENTITY_ID);
        var mgr = new DefaultConfigurationManager();
        mgr.configure();

        configuration.setForceKeystoreGeneration(true);
        configuration.setKeystorePath("target/keystore.jks");
        configuration.setKeystorePassword("pac4j");
        configuration.setPrivateKeyPassword("pac4j");
        configuration.setSignMetadata(true);
        configuration.setServiceProviderEntityId(ENTITY_ID);
        configuration.setIdentityProviderMetadataResource(new ClassPathResource("idp-metadata.xml"));
        configuration.setMetadataGenerator(metadataGenerator);
        configuration.init();
    }
This is {@link SAML2S3MetadataGeneratorIT}.

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