@Test
    public void testSendWithoutConnecting() {
        assertThrows(IllegalStateException.class, () -> selector.send(createSend("0", "test")));
    }
Sending a request to a node without an existing connection should result in an exception
clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java