when(queue.getParent(VirtualHost.class)).thenReturn(_virtualHost);
when(queue.getName()).thenReturn(TEST_QUEUE);
when(queue.isDurable()).thenReturn(true);
when(queue.getLifetimePolicy()).thenReturn(LifetimePolicy.PERMANENT);
BindingImpl binding = mock(BindingImpl.class);
when(binding.getExchange()).thenReturn(exchange);
when(binding.getAMQQueue()).thenReturn(queue);
when(binding.getBindingKey()).thenReturn("bindingKey");
ObjectProperties properties = new ObjectProperties();
properties.put(Property.NAME, TEST_EXCHANGE);
properties.put(Property.VIRTUALHOST_NAME, TEST_VIRTUAL_HOST);
properties.put(Property.QUEUE_NAME, TEST_QUEUE);