### Question:
OWLAPIOntology extends AbstractKnowledgeSource implements OWLOntologyKnowledgeSource { @Override public OWLOntology createOWLOntology(OWLOntologyManager manager) { OWLOntology copy = null; try { IRI iri; if(ontology.getOntologyID().isAnonymous()){ iri = IRI.generateDocumentIRI(); } else { iri = ontology.getOntologyID().getOntologyIRI().orNull(); if(iri == null) { iri = IRI.generateDocumentIRI(); } } copy = manager.createOntology(iri, Collections.singleton(ontology)); } catch (OWLOntologyCreationException e) { e.printStackTrace(); } return copy; } OWLAPIOntology(OWLOntology ontology); @Override OWLOntology createOWLOntology(OWLOntologyManager manager); @Override void init(); OntologyToByteConverter getConverter(); void setConverter(OntologyToByteConverter converter); OWLOntology getOntology();  }### Answer:
@Test public void testMethods() throws Exception { OWLOntology ontology = createOntology(); assertNotNull(ontology); OWLAPIOntology testSubject = new OWLAPIOntology(ontology); OWLOntology result = testSubject.createOWLOntology(OWLManager.createOWLOntologyManager()); assertNotNull(result); assertNotSame(ontology,result); assertEquals(ontology.getIndividualsInSignature().size(), result.getIndividualsInSignature().size()); }