JenaDataSource implements ReloadableDataSource { @Override public synchronized Connection getConnection() { ensureOpen(); if (driver == null) { connect(); } return driver.acquireConnection(); }  @Override synchronized Connection getConnection(); @Override synchronized void setStorageProperties(OntologyStorageProperties storageProperties); @Override synchronized void setProperties(Map<String, String> properties); @Override void close(); @Override boolean isOpen(); @Override void reload(); void setDataset(Dataset dataset);  }
@Test public void connectingWithoutStoragePropertiesThrowsIllegalStateException() { thrown.expect(IllegalStateException.class); thrown.expectMessage(containsString("cannot connect without ontology storage properties")); dataSource.getConnection(); }