assertNotNull("pref is null and it shouldn't be", pref);
assertEquals("pref Size: " + pref.length() + " is not: " + 3, 3, pref.length());
}
public void testGetItems() throws Exception {
LongPrimitiveIterator it = model.getItemIDs();
assertNotNull(it);
assertTrue(it.hasNext());
assertEquals(123, it.nextLong());
assertTrue(it.hasNext());
assertEquals(234, it.nextLong());
assertTrue(it.hasNext());
assertEquals(456, it.nextLong());
assertTrue(it.hasNext());
assertEquals(654, it.nextLong());
assertTrue(it.hasNext());
assertEquals(789, it.nextLong());
assertFalse(it.hasNext());
try {
it.next();
fail("Should throw NoSuchElementException");
} catch (NoSuchElementException nsee) {
// good
}
}