@Override
          public void execute(FunctionContext context) {
            @SuppressWarnings("unchecked")
            final ResultSender<Object> resultSender = context.getResultSender();
            if (context.getArguments() instanceof String) {
              resultSender.lastResult("Success");
            } else if (context.getArguments() instanceof Boolean) {
              resultSender.lastResult(Boolean.TRUE);
            }
          }
This test case verifies that if the execution of a function handled
by a Function Execution thread times out at the client, the ServerConnection
thread will eventually be released.
In order to test this, a slow function will be executed by a client
with a small time-out a number of times equal to the number of servers
in the cluster * the max number of threads configured.
After the function executions have timed-out, another request will be
sent by the client to any server and it should be served timely.
If the ServerConnection threads had not been released, this new
request will never be served because there would be not ServerConnection
threads available and the test case will time-out.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/PRClientServerRegionFunctionExecutionNoSingleHopDistributedTest.java