@Test(description = "This method tests authenticate method under the successful condition", dependsOnMethods =
        { "testAuthenticateFailureScenarios" })

public void testAuthenticate() throws IllegalAccessException, NoSuchFieldException {
    Request request = createJWTRequest(jwtToken, "test");
    AuthenticationInfo authenticationInfo = jwtAuthenticator.authenticate(request, null);
    Assert.assertNotNull(authenticationInfo.getUsername(), "Proper authentication request is not properly "
            + "authenticated by the JWTAuthenticator");
}