@Test
public void testDeleteMenu() throws IOException {

  // initialize
  TopicMapIF tm = load("condition-menu.ltm");
  TopicIF topic = getTopicById(tm, "menu1");
  Assert.assertTrue("menu topic not found",
             topic != null);
  // test menu
  Menu menu = new Menu(topic);
/ names must have types, check presence
opicIF tname = tm.getTopicBySubjectIdentifier(PSI.getSAMNameType());
ssert.assertNotNull(tname);
/ 23 topics + nametype = 24
  Assert.assertEquals(24, tm.getTopics().size());
  Assert.assertEquals(6, tm.getAssociations().size());
  menu.delete();
/ 20 topics + nametype = 21
  Assert.assertEquals(21, tm.getTopics().size());
  Assert.assertEquals(1, tm.getAssociations().size());
  Assert.assertNull(topic.getTopicMap());
  // Since the topic is not part of a topic map anymore,
  // there's no further persistence tests to do.
  // The menu cannot be reconstructed as it doesn't exist.
}