conf.set(TxConstants.Manager.CFG_TX_SNAPSHOT_DIR, tmpFolder.newFolder().getAbsolutePath());
Injector injector = Guice.createInjector(
new ConfigModule(conf),
new DiscoveryModules().getInMemoryModules(),
Modules.override(
new TransactionModules().getInMemoryModules()).with(new AbstractModule() {
@Override
protected void configure() {
TransactionManager txManager = new TransactionManager(conf);
txManager.startAndWait();
bind(TransactionManager.class).toInstance(txManager);