public static String getRegisterStatus(ProviderModel providerModel) {
        // check all registries status
        List<String> statuses = new LinkedList<>();
        for (ProviderModel.RegisterStatedURL registerStatedURL : providerModel.getStatedUrl()) {
            URL registryUrl = registerStatedURL.getRegistryUrl();
            boolean isServiceDiscovery = UrlUtils.isServiceDiscoveryURL(registryUrl);
            String protocol = isServiceDiscovery
                    ? registryUrl.getParameter(RegistryConstants.REGISTRY_KEY)
                    : registryUrl.getProtocol();
            // e.g. zookeeper-A(Y)
            statuses.add(protocol + "-" + (isServiceDiscovery ? "A" : "I") + "("
                    + (registerStatedURL.isRegistered() ? "Y" : "N") + ")");
        }
        // e.g. zookeeper-A(Y)/zookeeper-I(Y)
        return String.join("/", statuses.toArray(new String[0]));
    }
@Test
    void testIsRegistered() {
        DemoService demoServiceImpl = new DemoServiceImpl();

        int availablePort = NetUtils.getAvailablePort();

        URL url = URL.valueOf("tri://127.0.0.1:" + availablePort + "/" + DemoService.class.getName());

        ServiceDescriptor serviceDescriptor = repository.registerService(DemoService.class);

        ProviderModel providerModel = new ProviderModel(
                url.getServiceKey(),
                demoServiceImpl,
                serviceDescriptor,
                new ServiceMetadata(),
                ClassUtils.getClassLoader(DemoService.class));
        repository.registerProvider(providerModel);

        String url1 =
                "service-discovery-registry://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-api-provider&dubbo=2.0.2&pid=66099&registry=zookeeper&timestamp=1654588337653";
        String url2 =
                "zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-api-provider&dubbo=2.0.2&pid=66099&timestamp=1654588337653";
        providerModel.getStatedUrl().add(new ProviderModel.RegisterStatedURL(url, URL.valueOf(url1), true));
        providerModel.getStatedUrl().add(new ProviderModel.RegisterStatedURL(url, URL.valueOf(url2), false));

        Assertions.assertEquals("zookeeper-A(Y)/zookeeper-I(N)", ServiceCheckUtils.getRegisterStatus(providerModel));
    }