SesameAdapter implements Closeable, Wrapper { public SesameAdapter(Connector connector, DriverConfiguration configuration) { assert connector != null; this.connector = connector; this.valueFactory = connector.getValueFactory(); this.config = new RuntimeConfiguration(configuration); this.open = true; this.transaction = new Transaction(); } SesameAdapter(Connector connector, DriverConfiguration configuration); @Override void close(); @Override boolean isOpen(); @Override T unwrap(Class<T> cls);  }
@Test void testSesameAdapter() throws Exception { final OntologyStorageProperties sp = OntologyStorageProperties.driver(SesameDataSource.class.getName()) .physicalUri("memory-store").build(); final DriverConfiguration dc = new DriverConfiguration(sp); dc.setProperty(SesameConfigParam.LOAD_ALL_THRESHOLD, "1"); this.adapter = new SesameAdapter(connectorMock, dc); final Field configField = SesameAdapter.class.getDeclaredField("config"); configField.setAccessible(true); final RuntimeConfiguration config = (RuntimeConfiguration) configField.get(adapter); assertEquals(1, config.getLoadAllThreshold()); }