@Override
    public List<URL> build(ServiceInstance serviceInstance) {
        Map<String, String> metadata = serviceInstance.getMetadata();
        String dubboUrlsForJson = metadata.get(METADATA_SERVICE_URLS_PROPERTY_NAME);
        if (StringUtils.isBlank(dubboUrlsForJson)) {
            return Collections.emptyList();
        }
        List<String> urlStrings = JsonUtils.toJavaList(dubboUrlsForJson, String.class);
        return urlStrings.stream().map(URL::valueOf).collect(Collectors.toList());
    }
@Test
    void testBuild() {
        List<URL> urls =
                builder.build(new DefaultServiceInstance("127.0.0.1", "test", 8080, ApplicationModel.defaultModel()));
        assertEquals(0, urls.size());

        urls = builder.build(serviceInstance);
        assertEquals(1, urls.size());
        URL url = urls.get(0);
        assertEquals("192.168.0.102", url.getHost());
        assertEquals(20881, url.getPort());
        assertEquals("com.alibaba.cloud.dubbo.service.DubboMetadataService", url.getServiceInterface());
    }