def METHOD_NAME(backend = authentication.JWTTokenUserAuthentication()):
    from django.utils.functional import cached_property
    class BobSaget(TokenUser):
        @cached_property
        def username(self):
            return "bsaget"
    temp = api_settings.TOKEN_USER_CLASS
    api_settings.TOKEN_USER_CLASS = BobSaget
    # Should return a token user object
    payload = {api_settings.USER_ID_CLAIM: 42}
    user = backend.get_user(payload)
    assert isinstance(user, api_settings.TOKEN_USER_CLASS)
    assert user.id == 42
    assert user.username == "bsaget"
    # Restore default TokenUser for future tests
    api_settings.TOKEN_USER_CLASS = temp