@Test
public void testListClient() throws Exception {

    ExchangeClient client1 = Exchangers.connect("dubbo://127.0.0.1:" + availablePort + "/demo");
    ExchangeClient client2 = Exchangers.connect("dubbo://127.0.0.1:" + availablePort + "/demo");
    Thread.sleep(5000);
    String result = port.telnet(null, "-l " + availablePort + "");
    String client1Addr = client1.getLocalAddress().toString();
    String client2Addr = client2.getLocalAddress().toString();
    System.out.printf("Result: %s %n", result);
    System.out.printf("Client 1 Address %s %n", client1Addr);
    System.out.printf("Client 2 Address %s %n", client2Addr);
    assertTrue(result.contains(String.valueOf(client1.getLocalAddress().getPort())));
    assertTrue(result.contains(String.valueOf(client2.getLocalAddress().getPort())));
}