@Test
void encodeTryCompressWithCustomType() {

  ByteBuf metadata = ByteBufUtils.getRandomByteBuf(2);
  CompositeByteBuf target = UnpooledByteBufAllocator.DEFAULT.compositeBuffer();
  CompositeMetadataCodec.encodeAndAddMetadataWithCompression(
      target, UnpooledByteBufAllocator.DEFAULT, "custom/example", metadata);
  assertThat(target.readableBytes()).as("readableBytes 1 + 14 + 3 + 2").isEqualTo(20);
}