@Test
    public void testCustomParams() {
        ProviderConfig providerConfig = new ProviderConfig();
        Map<String, String> map = new HashMap<String, String>();
        map.put("x", "y");
        map.put("a", "b");
        providerConfig.setParameters(map);

        ServerConfig server = new ServerConfig();
        providerConfig.setServer(server);
        List<String> urls = ZookeeperRegistryHelper.convertProviderToUrls(providerConfig);
        LOGGER.info(urls.toString());

        Assert.assertNotNull(urls);
        Assert.assertEquals(1, urls.size());

        String url = urls.get(0);

        ProviderInfo providerInfo = ProviderHelper.toProviderInfo(url);

        LOGGER.info(providerInfo.toString());

        Assert.assertEquals("b", providerInfo.getStaticAttr("a"));
        Assert.assertEquals("y", providerInfo.getStaticAttr("x"));

    }
@author <a href="mailto:lw111072@antfin.com">LiWei.Liangen</a>
registry/registry-zk/src/test/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistryHelperTest.java