OwlapiDataSource implements ReloadableDataSource { @Override public synchronized void reload() throws OntoDriverException { ensureOpen(); if (connected) { driver.reloadData(); } }  @Override synchronized Connection getConnection(); @Override void setStorageProperties(OntologyStorageProperties storageProperties); @Override void setProperties(Map<String, String> properties); @Override synchronized void reload(); @Override synchronized void close(); @Override boolean isOpen();  }
@Test public void reloadDoesNothingWhenNotConnected() throws Exception { final Field driverField = OwlapiDataSource.class.getDeclaredField("driver"); driverField.setAccessible(true); assertNull(driverField.get(dataSource)); dataSource.reload(); assertNull(driverField.get(dataSource)); }