JenaConnection implements Connection { @Override public void update(AxiomValueDescriptor descriptor) throws OntoDriverException { ensureOpen(); Objects.requireNonNull(descriptor); adapter.update(descriptor); commitIfAuto(); } JenaConnection(JenaAdapter adapter); @Override boolean isOpen(); @Override void commit(); @Override void rollback(); @Override void setAutoCommit(boolean autoCommit); @Override boolean isAutoCommit(); @Override JenaStatement createStatement(); @Override PreparedStatement prepareStatement(String sparql); @Override boolean isConsistent(URI context); @Override List<URI> getContexts(); @Override boolean contains(Axiom<?> axiom, URI context); @Override Collection<Axiom<?>> find(AxiomDescriptor descriptor); @Override void persist(AxiomValueDescriptor descriptor); @Override URI generateIdentifier(URI classUri); @Override void update(AxiomValueDescriptor descriptor); @Override void remove(AxiomDescriptor descriptor); @Override JenaLists lists(); @Override JenaTypes types(); @Override JenaProperties properties(); @Override T unwrap(Class<T> cls); @Override void close();  }
@Test public void updatePassesDataToAdapter() throws Exception { final AxiomValueDescriptor descriptor = new AxiomValueDescriptor(SUBJECT); connection.update(descriptor); verify(adapterMock).update(descriptor); }