final Configuration conf = HBaseConfiguration.create();
conf.set(TxConstants.Persist.CFG_TX_SNAPHOT_CODEC_CLASSES, DefaultSnapshotCodec.class.getName());
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);