@Test(expected = CredentialsException.class)
    public void testAuthenticateFailed() {
        Authenticator authenticator =
            new JwtAuthenticator(new SecretSignatureConfiguration(MAC_SECRET), new SecretEncryptionConfiguration(MAC_SECRET));
        val credentials = new TokenCredentials("fakeToken");
        authenticator.validate(null, credentials);
    }
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