@NotNull
  private static Properties gemFireConfiguration(
      final boolean conserveSockets, final boolean useTLS,
      final int socketBufferSize)
      throws GeneralSecurityException, IOException {

    final Properties props;
    if (useTLS) {
      props = securityProperties();
    } else {
      props = new Properties();
    }

    props.setProperty("socket-buffer-size", String.valueOf(socketBufferSize));

    /*
     * This is something we intend to test!
     * Send all messages, from all threads, on a single socket per recipient.
     * maintenance tip: to see what kind of connection you're getting you can
     * uncomment logging over in DirectChannel.sendToMany()
     *
     * careful: if you set a boolean it doesn't take hold! setting a String
     */
    props.setProperty("conserve-sockets", String.valueOf(conserveSockets));

    return props;
  }
Tests one-way P2P messaging between two peers.
Many concurrent tasks compete on the sending side.
The main purpose of the test is to exercise
ByteBufferSharing and friends.

Tests combinations of: conserve-sockets true/false,
TLS on/off, and socket-buffer-size for sender
and receiver both set to the default (and equal)
and set to the sender's buffer twice as big as the
receiver's buffer.
geode-core/src/distributedTest/java/org/apache/geode/distributed/internal/P2PMessagingConcurrencyDUnitTest.java