factory.setRestrictIngestPermissions(false);
factory.setRestrictQueryPermissions(false);
factory.setTransactionIdFactory(UuidTransactionIdFactory.class.getCanonicalName());
cs = factory.createCatalogService();
CatalogFactory catalogFactory = new CatalogFactory();
catalogFactory.setCatalogId("TestCatalog1");
catalogFactory.setDictionaryFactories(null);
catalogFactory.setIndexFactory(getInMemoryDSFactory(tmpDirPath + "/1/"));
catalogFactory.setRestrictIngestPermissions(false);
catalogFactory.setRestrictQueryPermissions(false);
cs.addCatalog(catalogFactory.createCatalog());
catalogFactory.setCatalogId("TestCatalog2");
catalogFactory.setIndexFactory(getInMemoryDSFactory(tmpDirPath + "/2/"));
cs.addCatalog(catalogFactory.createCatalog());
}