@Test
    public void testPemJwt() throws NoSuchAlgorithmException {
        val profile = createProfile();
        val signatureConfiguration = buildECSignatureConfiguration();
        val generator = new JwtGenerator(signatureConfiguration);
        val token = generator.generate(profile);
        val authenticator = new JwtAuthenticator();
        authenticator.addSignatureConfiguration(signatureConfiguration);
        assertToken(profile, token, authenticator);
    }
This class tests the {@link JwtGenerator} and {@link JwtAuthenticator}.

@author Jerome Leleu
@since 1.8.0
pac4j-jwt/src/test/java/org/pac4j/jwt/JwtTests.java