@Test
  public void testAfterRegionCreate() {
    Host host = Host.getHost(0);
    VM vm0 = host.getVM(0);
    VM vm1 = host.getVM(1);
    vm0.invoke(this::createCacheAndPopulateRegion1);
    vm1.invoke(this::createCacheAndRegion2);
    boolean pass = vm1.invoke(this::testFlag);
    assertTrue("The test failed", pass);

  }
TRAC #33726: afterRegionCreate event delivered before region initialization occurs
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/AfterRegionCreateBeforeInitializationRegressionTest.java