@Test(dataProvider = "toIntervalBestData")
public void toIntervalMin(final int streamSize, final int sliceSize) {

	final ISeq<Integer> values = IntStream.range(0, streamSize).boxed()
		.flatMap(Streams.toIntervalMin(sliceSize))
		.collect(ISeq.toISeq());
	for (int i = 0; i < streamSize/sliceSize; ++i) {
		Assert.assertEquals(values.get(i).intValue(), sliceSize*i);
	}
}