@AfterClass
  public static void afterClass() {
    ds.disconnect();
    ds = null;
    tm = null;
  }
Check if the correct expectations are being thrown when they are supposed to.
geode-core/src/integrationTest/java/org/apache/geode/internal/jta/ExceptionJUnitTest.java