### Question:
ActiveMQBase { public void close() { if (session != null) { try { session.close(); } catch (JMSException ex) { Logger.getLogger(ActiveMQBase.class.getName()).log(Level.SEVERE, null, ex); } session = null; } if (connection != null) { try { connection.close(); } catch (JMSException ex) { Logger.getLogger(ActiveMQBase.class.getName()).log(Level.SEVERE, null, ex); } connection = null; } } 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 testClose() throws Exception { System.out.println("close"); ActiveMQBase instance = new ActiveMQBaseImpl(); instance.close(); }