_exchange.isBound(_routingKey));
assertTrue("Queue was not bound to key",
_exchange.isBound(_routingKey,_queue));
assertEquals("Exchange binding count", 1,
_queue.getBindings().size());
final BindingImpl firstBinding = _queue.getBindings().iterator().next();
assertEquals("Wrong exchange bound", _routingKey,
firstBinding.getBindingKey());
assertEquals("Wrong exchange bound", _exchange,
firstBinding.getExchange());
_exchange.deleteBinding(_routingKey, _queue);
assertFalse("Routing key was still bound",
_exchange.isBound(_routingKey));