private Object issueRequest(final String hostName, final int locatorPort,
      final Object request, final boolean replyExpected)
      throws IOException, ClassNotFoundException {
    return new TcpClient(SocketCreatorFactory
        .getSocketCreatorForComponent(SecurableCommunicationChannel.LOCATOR),
        InternalDataSerializer.getDSFIDSerializer().getObjectSerializer(),
        InternalDataSerializer.getDSFIDSerializer().getObjectDeserializer(),
        TcpSocketFactory.DEFAULT)
            .requestToServer(new HostAndPort(hostName,
                locatorPort),
                request,
                10000, replyExpected);
  }
Test that the locator will properly estimate the load for servers when it receives connection
requests.
geode-core/src/distributedTest/java/org/apache/geode/cache/client/internal/LocatorLoadBalancingDUnitTest.java