@Test
    public void testTwitterProfileJwt() {
        val generator = new JwtGenerator();
        UserProfile profile = new TwitterProfile();
        profile.addAttribute(TwitterProfileDefinition.PROFILE_LINK_COLOR, new Color(1, 2, 3));
        val token = generator.generate(profile);
        assertNotNull(token);
    }
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