public void poll() throws Exception {
ArrayDeque deque = create();
assert deque.size() == 4;
assert deque.poll().equals("1");
assert deque.size() == 3;
assert deque.pollFirst().equals("2");
assert deque.size() == 2;
assert deque.pollLast().equals("4");
assert deque.size() == 1;
}