DefaultDataStoreManager implements DataStoreManager, DerivedProductStoreService { @Override public void add(DataStore datastore) { if (getDataStoreByName(datastore.getName()) != null) { LOGGER.warn("DataStore already present in the manager, not adding"); } else { datastores.add(datastore); } } @SuppressWarnings("unused") private  DefaultDataStoreManager();  DefaultDataStoreManager(List<DataStoreConf> confs); @Override String getName(); @Override Product get(String id); @Override void set(String uuid, Product product); @Override void addProduct(IngestibleProduct inProduct); @Override void deleteProduct(String uuid, Destination destination); @Override void deleteProduct(String uuid); @Override boolean hasProduct(String uuid); @Override void add(DataStore datastore); @Override DataStore remove(String datastoreName); @Override List<DataStore> list(); @Override boolean addProductReference(String uuid, Product product); @Override boolean canAccess(String resource_location); @Override int getPriority(); @Override boolean isReadOnly(); @Override void addDerivedProduct(String uuid, String tag, Product product); @Override void addDefaultDerivedProducts(IngestibleProduct inProduct); @Override void addDefaultDerivedProductReferences(IngestibleProduct inProduct); @Override boolean addDerivedProductReference(String uuid, String tag, Product product); @Override void deleteDerivedProduct(String uuid, String tag); @Override void deleteDerivedProducts(String uuid); @Override Product getDerivedProduct(String uuid, String tag); @Override boolean hasDerivedProduct(String uuid, String tag); @Override List<String> getProductList(); @Override void deleteProductFromDataStore(String uuid, String dataStoreName, Destination destination, Boolean safeMode);  }
@Test public void add() { HfsDataStore ds = new HfsDataStore("test", new HfsManager(TEMP_DIRECTORY_PATH, 5, 100), false, 0, -1L, 0, false); ds.setKeystore(new VolatileKeyStore()); dss.add(ds); Assert.assertEquals(dss.list().size(), 2); dss.remove("test"); }