Configuration hConf = conf;
FileSystem fs = FileSystem.get(hConf);
assertTrue(fs.mkdirs(tablePath));
HLog hlog = new HLog(fs, hlogPath, oldPath, hConf);
HRegion region = new HRegion(tablePath, hlog, fs, hConf, new HRegionInfo(Bytes.toBytes(tableName)), htd,
new MockRegionServerServices());
try {
region.initialize();
TransactionStateCache cache = new TransactionStateCacheSupplier(hConf).get();
LOG.info("Coprocessor is using transaction state: " + cache.getLatestState());