long delay = 500L;
boolean inhibitEvents = false;
QueuePutter putter = new QueuePutter(this.queue, delay, numOfEntries, inhibitEvents);
putter.start();
long t0 = System.currentTimeMillis();
ret = wrapper.blockingPeek(numOfEntries, 10000L);
assertEquals("Wrong number of entries when blocking with events", numOfEntries, ret.size());
long delta = System.currentTimeMillis() - t0;
log.info("The blocking request with events took '" + delta + "' milliseconds");
assertTrue("The method was blocking too long (did probably not wake up correctly", delta < 7000L);
queue.clear();