DataStoreManager extends DataStores { @Deprecated public DataStoreConf create(DataStoreConf dc, boolean save) { getDataStore().add(dc); if (save) { save(); } return dc; }  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 = "getDataStoresTest") public void createTest() { HfsDataStoreConf ds = (HfsDataStoreConf) dsManager.get("lambda"); Assert.assertNull(ds); HfsDataStoreConf ds2 = new HfsDataStoreConf(); ds2 = (HfsDataStoreConf) dsManager.create(ds2, false); ds2.setName("lambda"); ds = (HfsDataStoreConf) dsManager.get("lambda"); Assert.assertNotNull(ds); Assert.assertEquals(ds.getName(), "lambda"); }