@Test
void testEncode() {

  ByteBuf frame =
      ErrorFrameCodec.encode(ByteBufAllocator.DEFAULT, 1, new ApplicationErrorException("d"));
  frame = FrameLengthCodec.encode(ByteBufAllocator.DEFAULT, frame.readableBytes(), frame);
  assertEquals("00000b000000012c000000020164", ByteBufUtil.hexDump(frame));
  frame.release();
}