@Test
void testMONDOLoad() {

  Path mondoPath = Paths.get("src", "test", "resources", "mondo_module.owl");
  Ontology ontology = OntologyLoader.loadOntology(mondoPath.toFile(), "MONDO");
  List<String> xrefs =
    Arrays.asList(
      "DOID:0060111",
      "ICD10:D28.2",
      "MedDRA:10053865",
      "NCIT:C4517",
      "Orphanet:180237",
      "SCTID:92100009",
      "UMLS:C0346190");
  // 1. Check whether the example Term instance properly read all xref entries.
  for (Term gt : ontology.getTerms()) {
    for (Dbxref xref : gt.getXrefs()) {
      boolean containFlag = false;
      for (String xrefStr : xrefs) {
        if (xref.getName().contains(xrefStr)) {
          containFlag = true;
          break;
        }
      }
      if (!containFlag) fail("Xref " + xref.getName() + " is not available.");
    }
  }
  // 2. This sample ontology file contains a single root labeled as MONDO:0000624.
  assertEquals(TermId.of("MONDO:0000624"), ontology.getRootTermId());
}