TEST_P(ProtocolIntegrationTest, UpstreamDisconnectBeforeResponseCompleteWireBytesCountUpstream) {
  // 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%");

  testRouterUpstreamDisconnectBeforeResponseComplete();

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(159, 47, 128, 27),
                                     BytesCountExpectation(113, 13, 113, 13),
                                     BytesCountExpectation(113, 5, 113, 3));
}
TEST_P(ProtocolIntegrationTest, UpstreamDisconnectBeforeResponseCompleteWireBytesCountUpstream) {
   
  if (downstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%UPSTREAM_WIRE_BYTES_SENT% %UPSTREAM_WIRE_BYTES_RECEIVED% "
               "%UPSTREAM_HEADER_BYTES_SENT% %UPSTREAM_HEADER_BYTES_RECEIVED%");

  testRouterUpstreamDisconnectBeforeResponseComplete();

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(159, 47, 128, 27),
                                     BytesCountExpectation(113, 13, 113, 13),
                                     BytesCountExpectation(113, 5, 113, 3));
}