public void testNonAutoDeleteTopicIsNotClosed()
{
TopicDeletePolicy policy = new TopicDeletePolicy();
policy.configure(_config);
MockAMQQueue queue = createOwnedQueue();
queue.addBinding(new Binding(null, "bindingKey", queue, new TopicExchange(), null));
queue.setAutoDelete(false);
policy.performPolicy(queue);
assertFalse("Queue should not be deleted", queue.isDeleted());
assertTrue("Connection should be closed", _connection.isClosed());
}