@Test
void testOnHeadersRead_contentLengthTooLarge() {

  testHandler = new Http2Handler(mockEncoder, MAX_PAYLOAD, NO_CORS);
  headers.method("GET").path(OK_PATH).addLong(HttpHeaderNames.CONTENT_LENGTH, MAX_PAYLOAD + 10L);
  testHandler.onHeadersRead(mockContext, STREAM_ID, headers, 1, false);
  assertEquals(1L, requestMeter.getCount());
  verifyResponse(
      HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE,
      ImmutableMap.of(),
      Optional.of(Unpooled.wrappedBuffer(XrpcConstants.PAYLOAD_EXCEEDED_RESPONSE)),
      STREAM_ID);
}