private static TestCacheWriter getTestWriter(Region r) {
    return (TestCacheWriter) r.getAttributes().getCacheWriter();
  }
The port on which the cache server was started in this VM
geode-core/src/distributedTest/java/org/apache/geode/cache/ConnectionPoolDUnitTest.java