@Test public void diceSpliteratorIsNotSized() {

  Spliterator<?> spliterator = asList(1).spliterator();
  assertThat(spliterator.hasCharacteristics(Spliterator.SIZED)).isTrue();
  assertThat(spliterator.getExactSizeIfKnown()).isEqualTo(1);
  assertThat(MoreStreams.dice(spliterator, 2).hasCharacteristics(Spliterator.SIZED)).isFalse();
  assertThat(MoreStreams.dice(spliterator, 2).getExactSizeIfKnown()).isEqualTo(-1);
  assertThat(MoreStreams.dice(spliterator, 2).estimateSize()).isEqualTo(1);
  assertThat(MoreStreams.dice(asList(1, 2, 3).spliterator(), 2).estimateSize()).isEqualTo(2);
  assertThat(MoreStreams.dice(asList(1, 2, 3, 4, 5, 6).spliterator(), 2).estimateSize())
      .isEqualTo(3);
}