public static boolean isServiceDiscoveryURL(URL url) {
        return hasServiceDiscoveryRegistryProtocol(url) || hasServiceDiscoveryRegistryTypeKey(url);
    }
@Test
    public void testIsServiceDiscoveryURL() {
        String address1 = "http://example.com";
        URL url1 = UrlUtils.parseURL(address1, null);
        String address2 = "service-discovery-registry://example.com";
        URL url2 = UrlUtils.parseURL(address2, null);
        String address3 = "SERVICE-DISCOVERY-REGISTRY://example.com";
        URL url3 = UrlUtils.parseURL(address3, null);
        String address4 = "http://example.com?registry-type=service";
        URL url4 = UrlUtils.parseURL(address4, null);
        url4.addParameter(REGISTRY_TYPE_KEY, SERVICE_REGISTRY_TYPE);

        assertFalse(UrlUtils.isServiceDiscoveryURL(url1));
        assertTrue(UrlUtils.isServiceDiscoveryURL(url2));
        assertTrue(UrlUtils.isServiceDiscoveryURL(url3));
        assertTrue(UrlUtils.isServiceDiscoveryURL(url4));
    }