### Question:
ActiveMQBase { public void printQueueAndTopicInformation() { Set<ActiveMQQueue> queues = getQueues(); for (ActiveMQQueue queue1 : queues) { try { System.out.println("Queue Name: " + queue1.getQueueName()); System.out.println("Queue Physical: " + queue1.getPhysicalName()); } catch (JMSException ex) { Logger.getLogger(ActiveMQBase.class.getName()).log(Level.SEVERE, null, ex); } } Set<ActiveMQTopic> topics = getTopics(); for (ActiveMQTopic topics1 : topics) { try { System.out.println("Topic Name: " + topics1.getTopicName()); System.out.println("Topic Physical: " + topics1.getPhysicalName()); } catch (JMSException ex) { Logger.getLogger(ActiveMQBase.class.getName()).log(Level.SEVERE, null, ex); } } } ActiveMQBase();  ActiveMQBase(String user, String password, String url);  ActiveMQBase(String user, String password); void setAmqpExceptionListener(AmqpExceptionListener amqpExceptionListener); Set<ActiveMQQueue> getQueues(); Set<ActiveMQTopic> getTopics(); void printQueueAndTopicInformation(); void close();  }### Answer:
@Test public void testPrintQueueAndTopicInformation() { try { System.out.println("printQueueAndTopicInformation"); ActiveMQBase instance = new ActiveMQBaseImpl(); instance.printQueueAndTopicInformation(); instance.close(); } catch (Exception ex) { Logger.getLogger(ActiveMQBaseTest.class.getName()).log(Level.SEVERE, null, ex); } }