final ItemListenerConfig itemListenerConfig = new ItemListenerConfig(dummyListener, true);
queueConfig.addItemListenerConfig(itemListenerConfig);
final HazelcastInstance instance = createHazelcastInstance(config);
final IQueue queue = instance.getQueue(name);
queue.offer("item");
queue.poll();
assertTrue(dummyListener.latch.await(10, TimeUnit.SECONDS));
}
private static class DummyListener implements ItemListener, Serializable {