private void checkNoTxState() {
    assertEquals(null, txMgr.getTransactionId());
    assertTrue(!txMgr.exists());
    try {
      txMgr.commit();
      fail("expected IllegalStateException");
    } catch (CommitConflictException unexpected) {
      fail("did not expect " + unexpected);
    } catch (IllegalStateException ignored) {
    }
    try {
      txMgr.rollback();
      fail("expected IllegalStateException");
    } catch (IllegalStateException ignored) {
    }
  }
Tests basic transaction functionality

@since GemFire 4.0
geode-core/src/integrationTest/java/org/apache/geode/TXJUnitTest.java