SesameDataSource implements DataSource { @Override public void setStorageProperties(OntologyStorageProperties storageProperties) { ensureOpen(); this.storageProperties = Objects.requireNonNull(storageProperties); }  @Override synchronized void close(); @Override boolean isOpen(); @Override synchronized Connection getConnection(); @Override void setStorageProperties(OntologyStorageProperties storageProperties); @Override void setProperties(Map<String, String> properties); synchronized void setRepository(Repository repository);  }
@Test(expected = NullPointerException.class) public void testSesameDataSourceSetNullStorageProperties() { final SesameDataSource ds = new SesameDataSource(); ds.setStorageProperties(null); fail("This line should not have been reached."); assert ds == null; }