assert !iterator.hasNext();
}
@Test
public void iteratorRemove() throws Exception {
ArrayDeque deque = create();
Iterator iterator = deque.iterator();
assert iterator.hasNext();
assert iterator.next().equals("1");
assert iterator.hasNext();
assert iterator.next().equals("2");
assert deque.contains("2");
iterator.remove();
assert !deque.contains("2");
}