@Test
void decodeStringNullIfLengthOne() {

  ByteBuf fakeTypeBuffer = Unpooled.buffer(2);
  fakeTypeBuffer.writeByte(1);
  assertThatIllegalStateException()
      .isThrownBy(() -> decodeMimeTypeFromMimeBuffer(fakeTypeBuffer));
}