### Question:
OWLDataManager { public OWLReasoner getReasoner() throws OntologyHelperException { if (reasoner == null) { reasoner = new StructuralReasonerFactory().createReasoner(getOntology()); } return reasoner; } OWLDataManager(URI ontologyUri); void dispose(); OWLOntology getOntology(); OWLReasoner getReasoner(); boolean isIriInOntology(IRI iri); OWLClass getOWLClass(IRI iri);  }### Answer:
@Test public void getReasoner() throws Exception { OWLDataManager dm = new OWLDataManager(testOntologyUri); OWLReasoner reasoner = dm.getReasoner(); assertNotNull(reasoner); dm.dispose(); reasoner = dm.getReasoner(); assertNotNull(reasoner); }
@Test(expected = uk.co.flax.biosolr.ontology.core.OntologyHelperException.class) public void getReasoner_badUri() throws Exception { final URI dummyUri = new URI("http: OWLDataManager dm = new OWLDataManager(dummyUri); dm.getReasoner(); }