list.getInt(1);
fail("getInt(1) should throw");
} catch (IndexOutOfBoundsException e) {
/* no-op */
}
IntListIterator iter = list.iterator();
assertTrue(iter.hasNext());
assertFalse(iter.hasPrevious());
assertEquals(42, iter.nextInt());
assertFalse(iter.hasNext());
assertTrue(iter.hasPrevious());
assertEquals(42, iter.previousInt());
}