@Test
void testOnHeadersRead_trailerPart() {

  testHandler = new Http2Handler(mockEncoder, MAX_PAYLOAD, NO_CORS);
  // Fake the initial request + handler.
  Http2Headers initialHeaders = new DefaultHttp2Headers().method("GET").path(OK_PATH);
  XrpcRequest fakeRequest = new XrpcRequest(initialHeaders, null, null, channel);
  testHandler.requests.put(STREAM_ID, fakeRequest);
  testHandler.handlers.put(STREAM_ID, OK_HANDLER);
  headers.add("some-header", "some-value");
  testHandler.onHeadersRead(mockContext, STREAM_ID, headers, 1, true);
  // Expect an OK response, but DON'T expect a request count.
  assertEquals(0L, requestMeter.getCount());
  verifyResponse(HttpResponseStatus.OK, ImmutableMap.of(), Optional.empty(), STREAM_ID);
  // Assert that the request's headers were updated.
  assertEquals("some-value", fakeRequest.h2Headers().get("some-header"));
}