public static List<Endpoint> listenerListToEndPoints(
        String input,
        Map<ListenerName, SecurityProtocol> nameToSecurityProto
    ) {
        return listenerListToEndPoints(input, n -> {
            SecurityProtocol result = nameToSecurityProto.get(n);
            if (result == null) {
                throw new IllegalArgumentException("No security protocol defined for listener " + n.value());
            }
            return result;
        });
    }
@Test
    public void testAnotherListenerListToEndPointsWithIpV6() {
        assertEquals(Arrays.asList(
            new Endpoint("SASL_SSL", SecurityProtocol.SASL_SSL, "fe80::b1da:69ca:57f7:63d8%3", 9092)),
                SocketServerConfigs.listenerListToEndPoints("SASL_SSL://[fe80::b1da:69ca:57f7:63d8%3]:9092",
                    SocketServerConfigs.DEFAULT_NAME_TO_SECURITY_PROTO));
    }