def METHOD_NAME(session):
    """Assert User is created from the JWT fields."""
    token = b'invalidtoken'
    with pytest.raises(BusinessException) as excinfo:
        User.get_or_create_user_by_jwt(token)
    assert excinfo.value.error == 'unable_to_get_or_create_user'