deque.addLast(sequence);
int index = sequence.size() - 1;
for (Iterator<IntCursor> i = deque.descendingIterator(); i.hasNext(); )
{
IntCursor cursor = i.next();
assertEquals2(sequence.buffer[index], cursor.value);
assertEquals2(deque.buffer[cursor.index], cursor.value);
index--;
}
assertEquals(-1, index);