SesameAdapter implements Closeable, Wrapper { TypesHandler getTypesHandler() throws SesameDriverException { startTransactionIfNotActive(); return new TypesHandler(connector, valueFactory); } SesameAdapter(Connector connector, DriverConfiguration configuration); @Override void close(); @Override boolean isOpen(); @Override T unwrap(Class<T> cls);  }
@Test void getTypesHandlerStartsTransaction() throws SesameDriverException { adapter.getTypesHandler(); verify(connectorMock).begin(); }