TEST_P(ProtocolIntegrationTest, DownstreamDisconnectBeforeRequestCompleteWireBytesCountUpstream) {
  // we only care about upstream protocol.
  if (downstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%UPSTREAM_WIRE_BYTES_SENT% %UPSTREAM_WIRE_BYTES_RECEIVED% "
               "%UPSTREAM_HEADER_BYTES_SENT% %UPSTREAM_HEADER_BYTES_RECEIVED%");

  testRouterDownstreamDisconnectBeforeRequestComplete(nullptr);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(187, 0, 156, 0),
                                     BytesCountExpectation(114, 0, 114, 0),
                                     BytesCountExpectation(114, 0, 114, 0));
}
TEST_P(ProtocolIntegrationTest, DownstreamDisconnectBeforeRequestCompleteWireBytesCountUpstream) {
   
  if (downstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%UPSTREAM_WIRE_BYTES_SENT% %UPSTREAM_WIRE_BYTES_RECEIVED% "
               "%UPSTREAM_HEADER_BYTES_SENT% %UPSTREAM_HEADER_BYTES_RECEIVED%");

  testRouterDownstreamDisconnectBeforeRequestComplete(nullptr);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(187, 0, 156, 0),
                                     BytesCountExpectation(114, 0, 114, 0),
                                     BytesCountExpectation(114, 0, 114, 0));
}