@Test
void build() {

    ConfigCenterBuilder builder = new ConfigCenterBuilder();
    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").prefix("prefix");
    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.assertEquals("prefix", config.getPrefix());
    Assertions.assertNotSame(config, config2);
}