SesameAdapter implements Closeable, Wrapper { ListHandler<SimpleListDescriptor, SimpleListValueDescriptor> getSimpleListHandler() throws SesameDriverException { startTransactionIfNotActive(); return ListHandler.createForSimpleList(connector, valueFactory); } SesameAdapter(Connector connector, DriverConfiguration configuration); @Override void close(); @Override boolean isOpen(); @Override T unwrap(Class<T> cls);  }
@Test void getSimpleListHandlerStartsTransaction() throws SesameDriverException { adapter.getSimpleListHandler(); verify(connectorMock).begin(); }