@Override
      public Object call() throws Exception {
        Region r1 = getCache().createRegionFactory(RegionShortcut.REPLICATE).create(regionName);

        CacheServer server = getCache().addCacheServer();
        int port = AvailablePortHelper.getRandomAvailableTCPPort();
        server.setPort(port);
        server.start();
        return port;
      }
In PeerTypeRegistration when a PdxType is updated, a local map of class => PdxTypes is
populated. This map is used to search a field for a class in different versions (PdxTypes) This
test verifies that the map is being updated by the cacheListener
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/PdxQueryDUnitTest.java