@Test
void testOnDataRead_endOfStreamExecutes() {

  testHandler = new Http2Handler(mockEncoder, MAX_PAYLOAD, NO_CORS);
  // Create a fake request and handler.
  XrpcRequest fakeRequest = new XrpcRequest((Http2Headers) null, null, null, channel);
  testHandler.requests.put(STREAM_ID, fakeRequest);
  testHandler.handlers.put(STREAM_ID, OK_HANDLER);
  // Send a mostly-empty data frame.
  testHandler.onDataRead(
      mockContext, STREAM_ID, Unpooled.wrappedBuffer(new byte[] {0x20}), 0, true);
  // Verify an OK response.
  assertEquals(0L, requestMeter.getCount());
  verifyResponse(
      HttpResponseStatus.OK,
      ImmutableMap.of(),
      Optional.of(Unpooled.wrappedBuffer(new byte[] {0x20})),
      STREAM_ID);
}