@Override
  public final void preTearDownCacheTestCase() throws Exception {
    preTearDownPDXQueryTestBase();
    disconnectAllFromDS(); // tests all expect to create a new ds
    // Reset the testObject numinstance for the next test.
    TestObject.numInstance.set(0);
    // In all VM.
    resetTestObjectInstanceCount();
  }
The port on which the cache server was started in this VM
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/PDXQueryTestBase.java