@Test
void testLoadEctoAll() {

  Path ectoPath = Paths.get("src/test/resources/ecto.obo");
  // ECTO isn't mapped in the default Curie mappings, so we need to add it here
  //CurieUtil curieUtil = CurieUtilBuilder.withDefaultsAnd(ImmutableMap.of("ECTO", "http://http://purl.obolibrary.org/obo/ECTO_"));
  //Ontology permissiveOntology = OntologyLoader.loadOntology(ectoPath.toFile(), curieUtil);
  Ontology permissiveOntology = OntologyLoader.loadOntology(ectoPath.toFile());
  assertEquals(TermId.of("owl:Thing"), permissiveOntology.getRootTermId());
  assertEquals(8343, permissiveOntology.countNonObsoleteTerms());
  assertEquals(4, permissiveOntology.countAlternateTermIds());
  Set<String> prefixes = permissiveOntology.getAllTermIds()
    .stream()
    .map(TermId::getPrefix)
    .collect(toSet());
  assertTrue(prefixes.contains("NCIT"));
  assertTrue(prefixes.contains("CHEBI"));
  assertTrue(prefixes.contains("GO"));
  // Only a subset of the terms are ECTO
  // $ grep 'id: ECTO' phenol/phenol-io/src/test/resources/ecto.obo | wc -l
  // 2270
 long ectoTermCount = permissiveOntology.getTermMap().values().
                      stream().
                      filter(term -> term.getId().getPrefix().equals("ECTO")).
                      count();
 assertEquals(2270, ectoTermCount);
}