def METHOD_NAME(self, mocked_cache, mock_token_data):
    jwt_auth_backend = backend.JWTAuthBackend()
    mocked_request = mock.Mock()
    mocked_request.is_authorized_for.return_value = True
    settings = get_settings()
    for user_id_fields in settings['USER_ID_FIELDS']:
        claims = {user_id_fields: 'wrong_user@example.com'}
        mock_token_data.return_value = claims, 'wrong_user@example.com'
        mocked_cache.get.return_value = None
        with self.assertRaises(exceptions.AuthenticationFailed):
            jwt_auth_backend.authenticate(mocked_request)
        mocked_cache.get.assert_called_once_with('wrong_user@example.com')
        mocked_cache.set.assert_called_once_with(
            'wrong_user@example.com',
            backend.USER_DOES_NOT_EXIST,
            5 * 60
        )
        mocked_cache.reset_mock()