@Test
    public void testIfIssuerDoesNotContainBraces() throws URISyntaxException, UnsupportedEncodingException {
        AzureAd2OidcConfiguration oidcConfiguration = getAzureAd2OidcConfiguration(Set.of(ClientAuthenticationMethod.CLIENT_SECRET_POST, 
            ClientAuthenticationMethod.CLIENT_SECRET_BASIC));
        oidcConfiguration.init();
        
        AzureAdOpMetadataResolver azureAdOpMetadataResolver = getAzureAdOpMetadataResolver(oidcConfiguration,
            List.of(ClientAuthenticationMethod.CLIENT_SECRET_POST));

        Issuer issuer = azureAdOpMetadataResolver.load().getIssuer();
        
        Assert.assertNotNull(issuer);
        Assert.assertFalse("Issuer contains '}'", containsCharacter(issuer.toString(), '}'));
        Assert.assertFalse("Issuer contains '{'", containsCharacter(issuer.toString(), '{'));
    }
Tests {@link AzureAdOpMetadataResolver}.

@author Arjan van de Kamp
@since 6.0.4
pac4j-oidc/src/test/java/org/pac4j/oidc/metadata/AzureAdOpMetadataResolverTest.java