public static void populateCache() {
    Cache cache = new ClientServerMiscDUnitTestBase().getCache();
    Region r1 = cache.getRegion(SEPARATOR + REGION_NAME1);
    Region r2 = cache.getRegion(SEPARATOR + REGION_NAME2);
    assertNotNull(r1);
    assertNotNull(r2);

    if (!r1.containsKey(k1)) {
      r1.create(k1, k1);
    }
    if (!r1.containsKey(k2)) {
      r1.create(k2, k2);
    }
    if (!r2.containsKey(k1)) {
      r2.create(k1, k1);
    }
    if (!r2.containsKey(k2)) {
      r2.create(k2, k2);
    }

    assertEquals(r1.getEntry(k1).getValue(), k1);
    assertEquals(r1.getEntry(k2).getValue(), k2);
    assertEquals(r2.getEntry(k1).getValue(), k1);
    assertEquals(r2.getEntry(k2).getValue(), k2);
  }
bug 35380: Cycling a DistributedSystem with an initialized pool causes interest registration
NPE

Test Scenario:

Create a DistributedSystem (DS1). Create a pool, initialize (creates a proxy with DS1 memberid)
Disconnect DS1. Create a DistributedSystem (DS2). Create a Region with pool, it attempts to
register interest using DS2 memberid, gets NPE.
geode-dunit/src/main/java/org/apache/geode/internal/cache/tier/sockets/ClientServerMiscDUnitTestBase.java