@Override
    public void afterRegionCreate(RegionEvent event) {
      Region region = event.getRegion();
      if (((LocalRegion) region).isInitialized()) {
        String regionPath = event.getRegion().getFullPath();
        if (regionPath.contains(SEPARATOR + "testRegion" + SEPARATOR + "testSubRegion")) {
          flags[1] = true;
        } else if (regionPath.contains(SEPARATOR + "testRegion")) {
          flags[0] = true;
        }

      }
      if (flags[0] && flags[1]) {
        isOK = true;
        synchronized (AfterRegionCreateBeforeInitializationRegressionTest.class) {
          AfterRegionCreateBeforeInitializationRegressionTest.class.notify();
        }
      }
    }
TRAC #33726: afterRegionCreate event delivered before region initialization occurs
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/AfterRegionCreateBeforeInitializationRegressionTest.java