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