void () { assertTrue(myQueue.add("1")); Iterator<String> iterator = myQueue.iterator(); assertTrue(iterator.hasNext()); assertEquals("1", iterator.next()); assertFalse(iterator.hasNext()); myQueue.add("2"); assertTrue(iterator.hasNext()); assertEquals("2", iterator.next()); assertFalse(iterator.hasNext()); }