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