JenaAdapter implements Wrapper { void commit() throws JenaDriverException { if (transaction.isActive()) { transaction.commit(); connector.commit(); transaction.afterCommit(); } } JenaAdapter(StorageConnector connector, InferredStorageConnector inferenceConnector); ListHandler<SimpleListDescriptor, SimpleListValueDescriptor> simpleListHandler(); ListHandler<ReferencedListDescriptor, ReferencedListValueDescriptor> referencedListHandler(); @Override T unwrap(Class<T> cls);  }
@Test void commitDoesNothingWhenTransactionIsNotActive() throws Exception { adapter.commit(); verify(connectorMock, never()).commit(); }