@Test
void encodeTryCompressWithCompressableType() {

  ByteBuf metadata = ByteBufUtils.getRandomByteBuf(2);
  CompositeByteBuf target = UnpooledByteBufAllocator.DEFAULT.compositeBuffer();
  CompositeMetadataCodec.encodeAndAddMetadataWithCompression(
      target,
      UnpooledByteBufAllocator.DEFAULT,
      WellKnownMimeType.APPLICATION_AVRO.getString(),
      metadata);
  assertThat(target.readableBytes()).as("readableBytes 1 + 3 + 2").isEqualTo(6);
}