private void configure(
      final boolean conserveSockets,
      final boolean useTLS,
      final int sendSocketBufferSize,
      final int receiveSocketBufferSize) throws GeneralSecurityException, IOException {

    final Properties senderConfiguration =
        gemFireConfiguration(conserveSockets, useTLS, sendSocketBufferSize);
    final Properties receiverConfiguration =
        gemFireConfiguration(conserveSockets, useTLS, receiveSocketBufferSize);

    final MemberVM locator =
        clusterStartupRule.startLocatorVM(0, 0, VersionManager.CURRENT_VERSION,
            x -> x.withProperties(senderConfiguration).withConnectionToLocator()
                .withoutClusterConfigurationService().withoutManagementRestService());

    sender = clusterStartupRule.startServerVM(1, senderConfiguration, locator.getPort());
    receiver = clusterStartupRule.startServerVM(2, receiverConfiguration, locator.getPort());
  }
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