### Question:
JmsTemporaryTopic extends JmsTemporaryDestination implements TemporaryTopic { @Override public void delete() throws JMSException { tryDelete(); } JmsTemporaryTopic();  JmsTemporaryTopic(String name); @Override void delete(); @Override String getTopicName();  }### Answer:
@Test public void testIsDeleted() throws Exception { JmsTemporaryTopic topic = new JmsTemporaryTopic("myTopic"); assertFalse("should not be deleted", topic.isDeleted()); topic.delete(); assertTrue("should be deleted", topic.isDeleted()); }