@Test
void testEncodingWithEmptyMetadata() {

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