@Test
public void nextIndex() {

	final long seed = Randoms.seed();
	final Random random = new Random(seed);
	final Array<Integer> proxy = Array.of(ObjectStore.ofLength(1000));
	for (int i = 0; i < proxy.length(); ++i) {
		proxy.set(i, random.nextInt());
	}
	random.setSeed(seed);
	final ListIterator<Integer> it = new BaseSeqIterator<>(proxy);
	int count = 0;
	while (it.hasNext()) {
		Assert.assertEquals(it.nextIndex(), count);
		Assert.assertEquals(proxy.get(it.nextIndex()), it.next());
		++count;
	}
	Assert.assertEquals(count, proxy.length());
}