@Test
void decodeEntryHasNoContentLength() {

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