@Test
  public void testPauseUnpause() {
    TXManagerImpl txMgrImpl = (TXManagerImpl) txMgr;
    assertTrue(!txMgr.exists());
    assertEquals(null, txMgrImpl.pauseTransaction());
    TXStateProxy txProxy = null;
    txMgrImpl.unpauseTransaction(txProxy);
    assertTrue(!txMgr.exists());

    txMgr.begin();
    TransactionId origId = txMgr.getTransactionId();
    assertTrue(txMgr.exists());
    {
      TXStateProxy tx = txMgrImpl.pauseTransaction();
      assertTrue(!txMgr.exists());
      assertThatThrownBy(() -> txMgr.begin()).isInstanceOf(IllegalStateException.class);
      assertTrue(!txMgr.exists());
      txMgrImpl.unpauseTransaction(tx);
    }
    assertTrue(txMgr.exists());
    assertEquals(origId, txMgr.getTransactionId());
    txMgr.rollback();
  }
Test to make sure CacheListener callbacks are called in place with the CacheEvents properly
constructed
geode-core/src/integrationTest/java/org/apache/geode/TXJUnitTest.java