public static String buildMultiValueQuery(String key, Iterable<Object> values) {
        StringBuilder sb = new StringBuilder();
        for (Object v : values) {
            if (!sb.isEmpty()) {
                sb.append("&");
            }
            sb.append(key);
            sb.append("=");
            sb.append(v);
        }
        return sb.toString();
    }
@Test
    public void testBuildMultiValueQuery() {
        List<Object> list = new ArrayList<>();
        assertEquals("", URISupport.buildMultiValueQuery("id", list));
        list = List.of("hello");
        assertEquals("id=hello", URISupport.buildMultiValueQuery("id", list));
        list = List.of(1, 2, 3);
        assertEquals("id=1&id=2&id=3", URISupport.buildMultiValueQuery("id", list));
        list = List.of("foo", "bar", 3, true, "baz");
        assertEquals("hey=foo&hey=bar&hey=3&hey=true&hey=baz", URISupport.buildMultiValueQuery("hey", list));
    }