@Override
      public void run2() throws CacheException {
        Properties config = new Properties();
        config.setProperty(MCAST_PORT, "0");
        getSystem(config);
        PoolManager.createFactory().addServer(host0, port).setSubscriptionEnabled(true)
            .create("clientPool");
        getCache();
        AttributesFactory factory = new AttributesFactory();
        factory.setScope(Scope.LOCAL);
        factory.setPoolName("clientPool");
        createRegion(name, factory.createRegionAttributes());
      }
This the dunit test for the bug no : 36434
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/RemoteQueryDUnitTest.java