public static URI buildUri(String url, Query query) throws URISyntaxException {
        if (query != null && !query.isEmpty()) {
            url = url + "?" + query.toQueryUrl();
        }
        return new URI(url);
    }
@Test
    void testBuildUri() throws URISyntaxException {
        Query query = new Query();
        query.addParam("a", "");
        query.addParam("b", "x");
        query.addParam("uriChar", "=");
        query.addParam("chinese", "测试");
        URI actual = HttpUtils.buildUri("www.aliyun.com", query);
        assertEquals("www.aliyun.com?" + query.toQueryUrl(), actual.toString());
    }