private void test(int numInList) throws IOException { for (int i = 0; i < numInList; i++) { queue.add(i); } Iterator<Integer> it = queue.reread().iterator(); for (int i = 0; i < numInList; i++) { assertEquals(new Integer(i), it.next()); } }