@Test
public void toTimespanIntervalMax() {

	final ISeq<Integer> values = IntStream.range(1, 101).boxed()
		.flatMap(Streams.toIntervalMax(Duration.ofMillis(10), new TestClock()))
		.collect(ISeq.toISeq());
	Assert.assertEquals(values.length(),10);
	int start = 0;
	for (int i = 0; i < values.size(); ++i) {
		final int diff = values.get(i) - start;
		Assert.assertEquals(diff, 10);
		start = values.get(i);
	}
}