@Test
    public void testGenerateAuthenticateSub() {
        val generator = new JwtGenerator(new SecretSignatureConfiguration(MAC_SECRET));
        val profile = createProfile();
        profile.addAttribute(JwtClaims.SUBJECT, VALUE);
        val token = generator.generate(profile);
        profile.removeAttribute("sub");
        assertToken(profile, 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