@Override
        public Stream<? extends Arguments> provideArguments(ExtensionContext context) throws Exception {
            List<Arguments> parameters = new ArrayList<>();
            parameters.add(Arguments.of(new Args("TLSv1.2", false)));
            parameters.add(Arguments.of(new Args("TLSv1.2", true)));
            if (Java.IS_JAVA11_COMPATIBLE) {
                parameters.add(Arguments.of(new Args("TLSv1.3", false)));
            }
            return parameters.stream();
        }
Tests for the SSL transport layer. These use a test harness that runs a simple socket server that echos back responses.
clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java