public void testTimedPoll0() throws InterruptedException {
BlockingQueue q = populatedQueue(SIZE);
for (int i = 0; i < SIZE; ++i) {
assertEquals(i, q.poll(0, MILLISECONDS));
}
assertNull(q.poll(0, MILLISECONDS));
checkEmpty(q);
}
/**
* timed poll with nonzero timeout succeeds when non-empty, else times out