@Test public void diceParallelStream() {

  assertThat(MoreStreams.dice(IntStream.range(1, 8).boxed().parallel(), 2)
          .flatMap(List::stream).collect(toList()))
      .containsExactly(1, 2, 3, 4, 5, 6, 7);
  assertThat(MoreStreams.dice(IntStream.range(1, 6).boxed(), 2).parallel()
      .flatMap(List::stream).collect(toList()))
  .containsExactly(1, 2, 3, 4, 5);
}