public void testConfigListenerRegistration() throws InterruptedException {
Config config = new Config();
final String name = "queue";
final QueueConfig queueConfig = config.getQueueConfig(name);
final DummyListener dummyListener = new DummyListener();
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();