DataStoreManager extends DataStores { public synchronized void delete(DataStoreConf ds) { if (ds != null) { getDataStore().remove(ds); save(); } }  DataStoreConf get(String name); NamedDataStoreConf getNamed(String name); void createNamed(NamedDataStoreConf namedDsc); @Deprecated DataStoreConf create(DataStoreConf dc, boolean save); synchronized void delete(DataStoreConf ds); synchronized void update(final NamedDataStoreConf update); List<DataStoreConf> getAllDataStoreConfigurations(); List<NamedDataStoreConf> getNamedDataStoreConfigurations(); List<DataStoreConf> getUnnamedDataStoreConfigurations(); synchronized long varyCurrentSize(String dataStoreName, long amount);  }
@Test(dependsOnMethods = {"updateTest", "createTest"}) public void deleteTest() { HfsDataStoreConf ds = (HfsDataStoreConf) dsManager.get("lambda"); Assert.assertNotNull(ds); dsManager.delete(ds); ds = (HfsDataStoreConf) dsManager.get("lambda"); Assert.assertNull(ds); }