### Question:
JmsTemporaryQueue extends JmsTemporaryDestination implements TemporaryQueue { @Override public void delete() throws JMSException { tryDelete(); } JmsTemporaryQueue();  JmsTemporaryQueue(String name); @Override void delete(); @Override String getQueueName();  }### Answer:
@Test public void testIsDeleted() throws Exception { JmsTemporaryQueue queue = new JmsTemporaryQueue("myQueue"); assertFalse("should not be deleted", queue.isDeleted()); queue.delete(); assertTrue("should be deleted", queue.isDeleted()); }