when(queue.getParent(VirtualHost.class)).thenReturn(_virtualHost);
when(queue.getName()).thenReturn(TEST_QUEUE);
when(queue.isDurable()).thenReturn(true);
when(queue.getLifetimePolicy()).thenReturn(LifetimePolicy.PERMANENT);
ConsumerImpl consumer = mock(ConsumerImpl.class);
when(consumer.getMessageSource()).thenReturn(queue);
ObjectProperties properties = new ObjectProperties();
properties.put(Property.NAME, TEST_QUEUE);
properties.put(Property.VIRTUALHOST_NAME, TEST_VIRTUAL_HOST);
properties.put(Property.AUTO_DELETE, false);