DataStoreManager extends DataStores { public synchronized void update(final NamedDataStoreConf update) { Objects.requireNonNull(update); NamedDataStoreConf namedDsc = getNamed(update.getName()); if(namedDsc != null) { getDataStore().remove(namedDsc); create(update, true); } }  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 = {"createTest"}) public void updateTest() { HfsDataStoreConf ds = (HfsDataStoreConf) dsManager.get("lambda"); ds.setPath("myPath"); ds.setPriority(100); dsManager.update(ds); HfsDataStoreConf ds2 = (HfsDataStoreConf) dsManager.get("lambda"); Assert.assertEquals(ds2.getPath(), "myPath"); Assert.assertEquals(ds2.getPriority(), 100); }