OwlapiAdapter { List<URI> getContexts() { startTransactionIfNotActive(); return Collections.singletonList(connector.getOntologyUri()); } OwlapiAdapter(Connector connector); void addTransactionalChanges(Collection<OWLOntologyChange> changes); ListHandler<SimpleListDescriptor, SimpleListValueDescriptor> getSimpleListHandler(); ListHandler<ReferencedListDescriptor, ReferencedListValueDescriptor> getReferencedListHandler(); OwlapiStatement createStatement(OwlapiConnection connection); OwlapiPreparedStatement prepareStatement(String statement, OwlapiConnection connection); T unwrap(Class<T> cls);  }
@Test void testGetContexts() { final URI uri = getOntologyUri(); final List<URI> res = adapter.getContexts(); assertEquals(1, res.size()); assertEquals(uri, res.get(0)); }