public static boolean hasServiceDiscoveryRegistryProtocol(URL url) {
        return SERVICE_REGISTRY_PROTOCOL.equalsIgnoreCase(url.getProtocol());
    }
@Test
    public void testHasServiceDiscoveryRegistryProtocol() {
        String address1 = "http://root:alibaba@127.0.0.1:9090/dubbo.test.api";
        URL url1 = UrlUtils.parseURL(address1, null);
        String address2 = "service-discovery-registry://root:alibaba@127.0.0.1:9090/dubbo.test.api";
        URL url2 = UrlUtils.parseURL(address2, null);

        assertFalse(UrlUtils.hasServiceDiscoveryRegistryProtocol(url1));
        assertTrue(UrlUtils.hasServiceDiscoveryRegistryProtocol(url2));
    }