/** Test that skipping in a stream works as expected */
@Test public void testStreamSkipping() throws Exception
{
for(int i=0;i<TEST_INTEGERS.length;i++)
{
Iterator<IntWritable> iterator = new FSArrayFile.ArrayFileIterator<IntWritable>(arrayFile, new FixedSizeIntWritableFactory());
((Skipable)iterator).skip(i);
int j=i;
while(iterator.hasNext())
{
assertEquals(TEST_INTEGERS[j], iterator.next().get());