@Test
void testEncoding() {

  ByteBuf frame =
      RequestStreamFrameCodec.encode(
          ByteBufAllocator.DEFAULT,
          1,
          false,
          1,
          Unpooled.copiedBuffer("md", StandardCharsets.UTF_8),
          Unpooled.copiedBuffer("d", StandardCharsets.UTF_8));
  frame = FrameLengthCodec.encode(ByteBufAllocator.DEFAULT, frame.readableBytes(), frame);
  // Encoded FrameLength⌍        ⌌ Encoded Headers
  //                   |        |         ⌌ Encoded Request(1)
  //                   |        |         |      ⌌Encoded Metadata Length
  //                   |        |         |      |    ⌌Encoded Metadata
  //                   |        |         |      |    |   ⌌Encoded Data
  //                 __|________|_________|______|____|___|
  //                 ↓    ↓↓          ↓↓      ↓↓    ↓↓  ↓↓↓
  String expected = "000010000000011900000000010000026d6464";
  assertEquals(expected, ByteBufUtil.hexDump(frame));
  frame.release();
}