def METHOD_NAME(
    self, basic_client, oauth_http_service
):
    oauth_http_service.request.side_effect = ExternalRequestError(
        response=factories.requests.Response(
            status_code=401, json_data={"message": "Bearer token is invalid"}
        )
    )
    with pytest.raises(OAuth2TokenError) as exc_info:
        basic_client.request("GET", "/foo")
    assert exc_info.value.refreshable