MobiOntologyFactory implements OWLOntologyFactory { @Override public OWLOntology createOWLOntology(OWLOntologyManager manager, OWLOntologyID ontologyID, IRI documentIRI, OWLOntologyCreationHandler handler) throws OWLOntologyCreationException { LOG.trace("Enter createOWLOntology()"); long start = System.currentTimeMillis(); if (!ontologyID.isAnonymous()) { LOG.debug("createOWLOntology: {}", ontologyID.toString()); } OWLOntology owlOntology = ontologyFactory.createOWLOntology(manager, ontologyID, documentIRI, handler); LOG.trace("Exit createOWLOntology() {} ms", System.currentTimeMillis() - start); return owlOntology; } MobiOntologyFactory(OntologyManager ontologyManager, OWLOntologyFactory factory,
                               SesameTransformer sesameTransformer); @Override boolean canCreateFromDocumentIRI(IRI documentIRI); @Override boolean canAttemptLoading(OWLOntologyDocumentSource source); @Override OWLOntology createOWLOntology(OWLOntologyManager manager, OWLOntologyID ontologyID, IRI documentIRI,
                                         OWLOntologyCreationHandler handler); @Override OWLOntology loadOWLOntology(OWLOntologyManager manager, OWLOntologyDocumentSource source,
                                       OWLOntologyCreationHandler handler, OWLOntologyLoaderConfiguration config);  }
@Test public void createOWLOntologyTest() throws Exception { OWLOntologyID id = new OWLOntologyID(); assertEquals(owlOntology, factory.createOWLOntology(owlOntologyManager, id, owlProtocolIRI, handler)); verify(ontologyFactory).createOWLOntology(owlOntologyManager, id, owlProtocolIRI, handler); }