@Test
public void testSubfileErrorReporting() throws IOException {

  // test for issue 143: https://github.com/ontopia/ontopia/issues/143
  try {
    TopicMapIF tm = read("mergemap-error.ltm");
    Assert.fail("No error found!");
  } catch (IOException e) {
    String msg = e.getMessage();
    Assert.assertTrue("error message does not mention file containing error: " + msg,
               msg.indexOf("mergemap-error-sub.ltm") != -1);
  }
}