JenaAdapter implements Wrapper { boolean isConsistent(URI context) { beginTransactionIfNotActive(); return inferenceConnector.isConsistent(context != null ? context.toString() : null); } JenaAdapter(StorageConnector connector, InferredStorageConnector inferenceConnector); ListHandler<SimpleListDescriptor, SimpleListValueDescriptor> simpleListHandler(); ListHandler<ReferencedListDescriptor, ReferencedListValueDescriptor> referencedListHandler(); @Override T unwrap(Class<T> cls);  }
@Test void isConsistentChecksForConsistencyOnInferredConnector() { adapter.isConsistent(null); verify(inferredConnectorMock).isConsistent(null); }
@Test void isConsistentStartsTransactionIfNotAlreadyActive() { final URI context = Generator.generateUri(); adapter.isConsistent(context); verify(connectorMock).begin(); verify(inferredConnectorMock).isConsistent(context.toString()); }