@Test public void diceSpliteratorIsNotSorted() {

  Spliterator<?> spliterator = new TreeSet<>(asList(1)).spliterator();
  assertThat(spliterator.hasCharacteristics(Spliterator.SORTED)).isTrue();
  assertThat(spliterator.getComparator()).isNull();
  assertThat(MoreStreams.dice(spliterator, 2).hasCharacteristics(Spliterator.SORTED)).isFalse();
  assertThrows(
      IllegalStateException.class, () -> MoreStreams.dice(spliterator, 2).getComparator());
}