}
assertTrue(!iter.hasNext());
for(int i=values.length-1;i>=0;i--) {
assertTrue( iter.hasPrevious() );
assertTrue((i!=(values.length-1)) == iter.hasNext());
assertEquals(values[i],iter.previous());
}
assertTrue(!iter.hasPrevious());
for(int i=0;i<values.length;i++) {
assertTrue( iter.hasNext() );
assertTrue((i!=0) == iter.hasPrevious());