assertTrue( destinationSource.getTopics().contains(amqTopic) );
// This line generates a broker error since the consumer is still active.
try{
amqConnection.destroyDestination( (ActiveMQDestination)topic );
fail("expect exception on destroy if comsumer present");
} catch( JMSException expected ) {
assertTrue(expected.getMessage().indexOf(amqTopic.getTopicName()) != -1);
}