@Test
public void testErrorMenu() throws IOException {

  // initialize
  TopicMapIF tm = load("error-menu.ltm");
  TopicIF topic = getTopicById(tm, "menu1");
  Assert.assertTrue("menu topic not found",
             topic != null);
  // test menu
  try {
    Menu menu = new Menu(topic);
    menu.getChildren();
    Assert.fail("menu with invalid condition queries was accepted");
  } catch (OntopiaRuntimeException e) {
    // we should get this exception, because the menu has an invalid
    // condition query in it
  }
}