### Question:
OWLDataManager { public OWLOntology getOntology() throws OntologyHelperException { if (ontology == null) { try { LOGGER.info("Loading ontology from " + ontologyUri + "..."); OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); IRI iri = IRI.create(ontologyUri); ontology = manager.loadOntologyFromOntologyDocument(iri); } catch (OWLOntologyCreationException e) { LOGGER.error("Error creating ontology: {}", e.getMessage()); throw new OntologyHelperException(e); } } return ontology; } OWLDataManager(URI ontologyUri); void dispose(); OWLOntology getOntology(); OWLReasoner getReasoner(); boolean isIriInOntology(IRI iri); OWLClass getOWLClass(IRI iri);  }### Answer:
@Test(expected = uk.co.flax.biosolr.ontology.core.OntologyHelperException.class) public void getOntology_badUri() throws Exception { final URI dummyUri = new URI("http: OWLDataManager dm = new OWLDataManager(dummyUri); dm.getOntology(); }
@Test public void getOntology() throws Exception { OWLDataManager dm = new OWLDataManager(testOntologyUri); OWLOntology ontology = dm.getOntology(); assertNotNull(ontology); dm.dispose(); ontology = dm.getOntology(); assertNotNull(ontology); }