@Test
public void testFactory() throws org.tmapi.core.TMAPIException {

  TopicMapSystemFactory tmsf = TopicMapSystemFactory.newInstance();
  Assert.assertTrue("TopicMapSystemFactory is not net.ontopia.topicmaps.impl.tmapi2.TopicMapSystemFactory", 
      tmsf instanceof net.ontopia.topicmaps.impl.tmapi2.TopicMapSystemFactory);
  TopicMapSystem ts = tmsf.newTopicMapSystem();
  Assert.assertTrue("TopicMapSystem is not net.ontopia.topicmaps.impl.tmapi2.TopicMapSystem", 
      ts instanceof net.ontopia.topicmaps.impl.tmapi2.MemoryTopicMapSystemImpl);
  ts.close();
}