@Override
    public List<DiscoveryUpstreamData> parseValue(final String jsonString) {
        if (StringUtils.isBlank(jsonString)) {
            return Collections.emptyList();
        }
        GsonBuilder gsonBuilder = new GsonBuilder().registerTypeAdapter(DiscoveryUpstreamData.class, this);
        Gson gson = gsonBuilder.create();
        return Collections.singletonList(gson.fromJson(jsonString, DiscoveryUpstreamData.class));
    }
@Test
    void testParseValue() {
        final String jsonString = "{\"protocol\":\"tcp\",\"url\":\"127.0.0.1:8188\",\"status\":1,\"weight\":1}";
        final List<DiscoveryUpstreamData> expectDiscoveryUpstreamData = new ArrayList<>();
        DiscoveryUpstreamData discoveryUpstreamData = new DiscoveryUpstreamData();
        discoveryUpstreamData.setUrl("127.0.0.1:8188");
        discoveryUpstreamData.setProtocol("tcp");
        discoveryUpstreamData.setStatus(1);
        discoveryUpstreamData.setWeight(1);
        expectDiscoveryUpstreamData.add(discoveryUpstreamData);
        List<DiscoveryUpstreamData> actualDiscoveryUpstreamData = customDiscoveryUpstreamParser.parseValue(jsonString);
        assertEquals(expectDiscoveryUpstreamData, actualDiscoveryUpstreamData);

    }