### Question:
JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements QueueReceiver, AutoCloseable { @Override public Queue getQueue() throws JMSException { return getQueueReceiver().getQueue(); } JmsPoolQueueReceiver(JmsPoolSession session, QueueReceiver delegate); @Override Queue getQueue(); @Override String toString(); QueueReceiver getQueueReceiver();  }### Answer:
@Test public void testGetQueue() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueReceiver receiver = session.createReceiver(queue); assertNotNull(receiver.getQueue()); assertSame(queue, receiver.getQueue()); receiver.close(); try { receiver.getQueue(); fail("Cannot read topic on closed receiver"); } catch (IllegalStateException ise) {} }