private void assertValid() {
        assertEquals(txRollbacks, stats.getTxRollbacks());
        assertEquals(txRollbackChanges, stats.getTxRollbackChanges());
        if (Boolean
            .getBoolean(GeodeGlossary.GEMFIRE_PREFIX + "cache.enable-time-statistics")) {
          assertTrue(txRollbackTime <= stats.getTxRollbackTime());
          // assertTrue(this.txRollbackLifeTime+((SLEEP_MS-10)*1000000) <=
          // this.stats.getTxRollbackLifeTime());
          assertTrue(
              "RollbackLifeTime " + txRollbackLifeTime + " is not <= "
                  + stats.getTxRollbackLifeTime(),
              txRollbackLifeTime <= stats.getTxRollbackLifeTime());
          assertTrue(txCommitTime <= stats.getTxCommitTime());
          assertTrue(txSuccessLifeTime <= stats.getTxSuccessLifeTime());
          assertTrue(txFailureTime <= stats.getTxFailureTime());
          assertTrue(
              "FailedLifeTime " + txFailedLifeTime + " is not <= "
                  + stats.getTxFailedLifeTime(),
              txFailedLifeTime <= stats.getTxFailedLifeTime());
        }

        assertEquals(txCommits, stats.getTxCommits());
        assertEquals(txCommitChanges, stats.getTxCommitChanges());

        assertEquals(txFailures, stats.getTxFailures());
        assertEquals(txFailureChanges, stats.getTxFailureChanges());
      }
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