  explicit MockRequestIDExtension(Random::RandomGenerator& random)
      : real_(Extensions::RequestId::UUIDRequestIDExtension::defaultInstance(random)) {
    ON_CALL(*this, set(_, _))
        .WillByDefault([this](Http::RequestHeaderMap& request_headers, bool force) {
          return real_->set(request_headers, force);
        });
    ON_CALL(*this, setInResponse(_, _))
        .WillByDefault([this](Http::ResponseHeaderMap& response_headers,
                              const Http::RequestHeaderMap& request_headers) {
          return real_->setInResponse(response_headers, request_headers);
        });
    ON_CALL(*this, toInteger(_))
        .WillByDefault([this](const Http::RequestHeaderMap& request_headers) {
          return real_->toInteger(request_headers);
        });
    ON_CALL(*this, getTraceReason(_))
        .WillByDefault([this](const Http::RequestHeaderMap& request_headers) {
          return real_->getTraceReason(request_headers);
        });
    ON_CALL(*this, setTraceReason(_, _))
        .WillByDefault(
            [this](Http::RequestHeaderMap& request_headers, Tracing::Reason trace_status) {
              real_->setTraceReason(request_headers, trace_status);
            });
  }
  explicit MockRequestIDExtension(Random::RandomGenerator& random)
      : real_(Extensions::RequestId::UUIDRequestIDExtension::defaultInstance(random)) {
    ON_CALL(*this, set(_, _))
        .WillByDefault([this](Http::RequestHeaderMap& request_headers, bool force) {
          return real_->set(request_headers, force);
        });
    ON_CALL(*this, setInResponse(_, _))
        .WillByDefault([this](Http::ResponseHeaderMap& response_headers,
                              const Http::RequestHeaderMap& request_headers) {
          return real_->setInResponse(response_headers, request_headers);
        });
    ON_CALL(*this, toInteger(_))
        .WillByDefault([this](const Http::RequestHeaderMap& request_headers) {
          return real_->toInteger(request_headers);
        });
    ON_CALL(*this, getTraceReason(_))
        .WillByDefault([this](const Http::RequestHeaderMap& request_headers) {
          return real_->getTraceReason(request_headers);
        });
    ON_CALL(*this, setTraceReason(_, _))
        .WillByDefault(
            [this](Http::RequestHeaderMap& request_headers, Tracing::Reason trace_status) {
              real_->setTraceReason(request_headers, trace_status);
            });
  }