### Question:
OWLDataManager { public boolean isIriInOntology(IRI iri) throws OntologyHelperException { checkClassMap(); return owlClassMap.containsKey(iri); } OWLDataManager(URI ontologyUri); void dispose(); OWLOntology getOntology(); OWLReasoner getReasoner(); boolean isIriInOntology(IRI iri); OWLClass getOWLClass(IRI iri);  }### Answer:
@Test public void isIriInOntology_nullIri() throws Exception { final IRI iri = null; OWLDataManager dm = new OWLDataManager(testOntologyUri); assertFalse(dm.isIriInOntology(iri)); }
@Test public void isIriInOntology_noSuchIri() throws Exception { final IRI iri = IRI.create("http: OWLDataManager dm = new OWLDataManager(testOntologyUri); assertFalse(dm.isIriInOntology(iri)); }
@Test public void isIriInOntology() throws Exception { final IRI iri = IRI.create(OWLOntologyHelperMethodsTest.TEST_IRI); OWLDataManager dm = new OWLDataManager(testOntologyUri); assertTrue(dm.isIriInOntology(iri)); }