def METHOD_NAME(session, monkeypatch):  # pylint: disable=unused-argument
    """Assert User is updated from a JWT and an existing User model."""
    token = {
        'preferred_username': 'CP1234567',
        'firstname': 'Bobby',
        'lasname': 'Joe',
        'realm_access': {
            'roles': [
                'edit',
                'uma_authorization',
                'basic'
            ]
        },
        'sub': '1b20db59-19a0-4727-affe-c6f64309fd04'
    }
    patch_token_info(token, monkeypatch)
    user = User.create_from_jwt_token('Bobby', 'Joe')
    updated_token = {
        'preferred_username': 'CP1234567',
        'firstname': 'Bob',
        'lastname': 'Joe',
        'realm_access': {
            'roles': [
                'edit',
                'uma_authorization',
                'basic'
            ]
        },
        'sub': '1b20db59-19a0-4727-affe-c6f64309fd04'
    }
    patch_token_info(updated_token, monkeypatch)
    user = User.update_from_jwt_token(user, 'Bob', 'Joe')
    assert user.firstname == 'Bob'