def METHOD_NAME(self):
    create_resource_server(self.app, self.USE_CACHE, self.USE_CACHE)
    user = User(username='foo')
    db.session.add(user)
    db.session.commit()
    client = Client(
        user_id=user.id,
        client_id='client',
        client_secret='secret',
        default_redirect_uri='https://a.b',
    )
    db.session.add(client)
    db.session.commit()
    tok = TokenCredential(
        user_id=user.id,
        client_id=client.client_id,
        oauth_token='valid-token',
        oauth_token_secret='valid-token-secret'
    )
    db.session.add(tok)
    db.session.commit()