protected PoolFactory getPoolFactory() {
    Host host = Host.getHost(0);
    PoolFactory factory = PoolManager.createFactory().addLocator(
        NetworkUtils.getServerHostName(host), DistributedTestUtils.getDUnitLocatorPort());
    return factory;
  }
Test reconnecting a durable client that is using the locator to discover its servers

@since GemFire 5.7
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientReconnectAutoDUnitTest.java