assertEquals(2, queue.getSize());
// as we enqueued the mail with delay we should get mail2 first
MailQueueItem item = queue.deQueue();
checkMail(mail2, item.getMail());
item.done(true);
TimeUnit.MILLISECONDS.sleep(200);
assertEquals(1, queue.getSize());
MailQueueItem item2 = queue.deQueue();