@Test
    public void testPlainJwtNoSubjectButIdentifierGenerator() {
        val generator = new JwtGenerator();
        val token = generator.generate(new HashMap<>());
        var authenticator = new JwtAuthenticator();
        authenticator.setIdentifierGenerator(new StaticValueGenerator(VALUE));
        val profile = authenticator.validateToken(token);
        assertEquals(VALUE, profile.getId());
    }
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