ConnectorFactoryImpl implements ConnectorFactory { @Override public Connector createStorageConnector(DriverConfiguration configuration) throws SesameDriverException { ensureOpen(); ensureConnected(configuration); return new PoolingStorageConnector(centralConnector); } ConnectorFactoryImpl(); @Override Connector createStorageConnector(DriverConfiguration configuration); @Override void setRepository(Repository repository, DriverConfiguration configuration); @Override synchronized void close(); @Override boolean isOpen();  }
@Test public void createConnectorInitializesRepository() throws Exception { this.factory = new ConnectorFactoryImpl(); final DriverConfiguration config = TestUtils.createDriverConfig("urn:test"); config.setProperty(SesameConfigParam.USE_VOLATILE_STORAGE, Boolean.TRUE.toString()); final Connector connector = factory.createStorageConnector(config); assertNotNull(connector); assertTrue(connector.unwrap(Repository.class).isInitialized()); }