@Override
    public ConfigCenterConfig build() {
        ConfigCenterConfig configCenter = new ConfigCenterConfig();
        super.build(configCenter);

        configCenter.setProtocol(protocol);
        configCenter.setAddress(address);
        configCenter.setCluster(cluster);
        configCenter.setNamespace(namespace);
        configCenter.setGroup(group);
        configCenter.setUsername(username);
        configCenter.setPassword(password);
        configCenter.setTimeout(timeout);
        configCenter.setHighestPriority(highestPriority);
        configCenter.setCheck(check);
        configCenter.setConfigFile(configFile);
        configCenter.setAppConfigFile(appConfigFile);
        configCenter.setParameters(parameters);

        return configCenter;
    }
@Test
    void build() {
        ConfigCenterBuilder builder = ConfigCenterBuilder.newBuilder();
        builder.check(true)
                .protocol("protocol")
                .address("address")
                .appConfigFile("appConfigFile")
                .cluster("cluster")
                .configFile("configFile")
                .group("group")
                .highestPriority(false)
                .namespace("namespace")
                .password("password")
                .timeout(1000L)
                .username("usernama")
                .appendParameter("default.num", "one")
                .id("id");

        ConfigCenterConfig config = builder.build();
        ConfigCenterConfig config2 = builder.build();

        Assertions.assertTrue(config.isCheck());
        Assertions.assertFalse(config.isHighestPriority());
        Assertions.assertEquals(1000L, config.getTimeout());
        Assertions.assertEquals("protocol", config.getProtocol());
        Assertions.assertEquals("address", config.getAddress());
        Assertions.assertEquals("appConfigFile", config.getAppConfigFile());
        Assertions.assertEquals("cluster", config.getCluster());
        Assertions.assertEquals("configFile", config.getConfigFile());
        Assertions.assertEquals("group", config.getGroup());
        Assertions.assertEquals("namespace", config.getNamespace());
        Assertions.assertEquals("password", config.getPassword());
        Assertions.assertEquals("usernama", config.getUsername());
        Assertions.assertTrue(config.getParameters().containsKey("default.num"));
        Assertions.assertEquals("one", config.getParameters().get("default.num"));
        Assertions.assertEquals("id", config.getId());

        Assertions.assertNotSame(config, config2);
    }