@Test
void streamSpliteratorCharacteristics() {

  final CompositeMetadata metadata =
      new CompositeMetadata(ByteBufUtils.getRandomByteBuf(5), false);
  assertThat(metadata.stream().spliterator())
      .matches(s -> s.hasCharacteristics(Spliterator.ORDERED), "ORDERED")
      .matches(s -> s.hasCharacteristics(Spliterator.DISTINCT), "DISTINCT")
      .matches(s -> s.hasCharacteristics(Spliterator.NONNULL), "NONNULL")
      .matches(s -> !s.hasCharacteristics(Spliterator.SIZED), "not SIZED");
}