def METHOD_NAME(self):
    HTTPHandler.called = True
    HTTPHandler.bearer_header_found = any(
        k for k in self.headers if k == "authorization" and self.headers[k] == "Bearer secret")
    self.send_response(200)
    self.send_header("Content-type", "application/json")
    self.end_headers()
    sample_dataset = {
        "id": "bigqueryproject:datasetname",
        "datasetReference": {
            "datasetId": "datasetname",
            "projectId": "bigqueryproject"
        }
    }
    self.wfile.write(json.dumps({"kind": "bigquery#datasetList", "datasets": [sample_dataset]}).encode("utf-8"))