@Test
void decodeEntryTooShortForMimeLength() {

  ByteBuf fakeEntry = Unpooled.buffer();
  fakeEntry.writeByte(120);
  CompositeMetadata compositeMetadata = new CompositeMetadata(fakeEntry, false);
  assertThatIllegalStateException()
      .isThrownBy(() -> compositeMetadata.iterator().next())
      .withMessage("metadata is malformed");
}