private long openTxn() throws MetaException {
    return txnHandler
        .openTxns(new OpenTxnRequest(1, "me", "localhost"))
        .getTxn_ids()
        .get(0);
  }
Testing whether AcidTxnCleanerService removes the correct records
from the TXNS table (via TxnStore).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/txn/TestAcidTxnCleanerService.java