private boolean testFlag() {
    if (isOK) {
      return isOK;
    } else {
      synchronized (AfterRegionCreateBeforeInitializationRegressionTest.class) {
        if (isOK) {
          return isOK;
        } else {
          try {
            AfterRegionCreateBeforeInitializationRegressionTest.class.wait(120000);
          } catch (InterruptedException ie) {
            fail("interrupted");
          }
        }
      }
      return isOK;
    }
  }
TRAC #33726: afterRegionCreate event delivered before region initialization occurs
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/AfterRegionCreateBeforeInitializationRegressionTest.java