### Question:
JmsPoolTopicSubscriber extends JmsPoolMessageConsumer implements TopicSubscriber, AutoCloseable { @Override public Topic getTopic() throws JMSException { return getTopicSubscriber().getTopic(); } JmsPoolTopicSubscriber(JmsPoolSession session, TopicSubscriber delegate); @Override Topic getTopic(); @Override boolean getNoLocal(); @Override String toString(); TopicSubscriber getTopicSubscriber();  }### Answer:
@Test public void testGetTopic() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); Topic topic = session.createTemporaryTopic(); TopicSubscriber subscriber = session.createSubscriber(topic); assertNotNull(subscriber.getTopic()); assertSame(topic, subscriber.getTopic()); subscriber.close(); try { subscriber.getTopic(); fail("Cannot read topic on closed subscriber"); } catch (IllegalStateException ise) {} }