private Thread createSender(InetSocketAddress serverAddress, byte[] payload) {
        return new PlaintextSender(serverAddress, payload);
    }
Tests that graceful close is not delayed if only part of an incoming receive is
available in the socket buffer.
clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java