public static boolean hasServiceDiscoveryRegistryTypeKey(URL url) {
        return hasServiceDiscoveryRegistryTypeKey(url == null ? emptyMap() : url.getParameters());
    }
@Test
    public void testHasServiceDiscoveryRegistryTypeKey() {
        Map<String, String> parameters1 = new HashMap<>();
        parameters1.put(REGISTRY_TYPE_KEY, "value2");
        assertFalse(UrlUtils.hasServiceDiscoveryRegistryTypeKey(parameters1));

        Map<String, String> parameters2 = new HashMap<>();
        parameters2.put(REGISTRY_TYPE_KEY, SERVICE_REGISTRY_TYPE);

        assertTrue(UrlUtils.hasServiceDiscoveryRegistryTypeKey(parameters2));
    }