public static ExchangeClient connect(String url) throws RemotingException {
        return connect(URL.valueOf(url));
    }
@Test
    void testConnect() throws RemotingException {
        String url = "dubbo://127.0.0.1:12345?exchanger=mockExchanger";
        Exchangers.connect(url);
        Exchangers.connect(url, Mockito.mock(Replier.class));
        Exchangers.connect(URL.valueOf(url), Mockito.mock(Replier.class));
        Exchangers.connect(url, new ChannelHandlerAdapter(), Mockito.mock(Replier.class));
        Exchangers.connect(url, new ExchangeHandlerDispatcher());

        Assertions.assertThrows(
                RuntimeException.class, () -> Exchangers.connect((URL) null, new ExchangeHandlerDispatcher()));
        Assertions.assertThrows(
                RuntimeException.class, () -> Exchangers.connect(url, (ExchangeHandlerDispatcher) null));
    }