SesameAdapter implements Closeable, Wrapper { ListHandler<ReferencedListDescriptor, ReferencedListValueDescriptor> getReferencedListHandler() throws SesameDriverException { startTransactionIfNotActive(); return ListHandler.createForReferencedList(connector, valueFactory); } SesameAdapter(Connector connector, DriverConfiguration configuration); @Override void close(); @Override boolean isOpen(); @Override T unwrap(Class<T> cls);  }
@Test void getReferencedListHandlerStartsTransaction() throws Exception { adapter.getReferencedListHandler(); verify(connectorMock).begin(); }