TEST_P(DownstreamProtocolIntegrationTest, BadRequest) {
  // we only care about upstream protocol.
  if (downstreamProtocol() != Http::CodecType::HTTP1) {
    return;
  }
  useAccessLog("%DOWNSTREAM_WIRE_BYTES_SENT% %DOWNSTREAM_WIRE_BYTES_RECEIVED% "
               "%DOWNSTREAM_HEADER_BYTES_SENT% %DOWNSTREAM_HEADER_BYTES_RECEIVED%");
  initialize();
  std::string response;
  std::string full_request(100, '\r');
  full_request += "GET / HTTP/1.1\r\n path: /test/long/url\r\n"
                  "Host: host\r\ncontent-length: 0\r\n"
                  "transfer-encoding: chunked\r\n\r\n";

  sendRawHttpAndWaitForResponse(lookupPort("http"), full_request.c_str(), &response, false);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(156, 200, 117, 0),
                                     BytesCountExpectation(113, 13, 113, 0),
                                     BytesCountExpectation(156, 200, 113, 0));
}
TEST_P(DownstreamProtocolIntegrationTest, BadRequest) {
   
  if (downstreamProtocol() != Http::CodecType::HTTP1) {
    return;
  }
  useAccessLog("%DOWNSTREAM_WIRE_BYTES_SENT% %DOWNSTREAM_WIRE_BYTES_RECEIVED% "
               "%DOWNSTREAM_HEADER_BYTES_SENT% %DOWNSTREAM_HEADER_BYTES_RECEIVED%");
  initialize();
  std::string response;
  std::string full_request(100, '\r');
  full_request += "GET / HTTP/1.1\r\n path: /test/long/url\r\n"
                  "Host: host\r\ncontent-length: 0\r\n"
                  "transfer-encoding: chunked\r\n\r\n";

  sendRawHttpAndWaitForResponse(lookupPort("http"), full_request.c_str(), &response, false);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(156, 200, 117, 0),
                                     BytesCountExpectation(113, 13, 113, 0),
                                     BytesCountExpectation(156, 200, 113, 0));
}