ConfigCenterBuilder extends AbstractBuilder<ConfigCenterConfig, ConfigCenterBuilder> { public ConfigCenterBuilder appendParameter(String key, String value) { this.parameters = appendParameter(this.parameters, key, value); return getThis(); }  ConfigCenterBuilder protocol(String protocol); ConfigCenterBuilder address(String address); ConfigCenterBuilder cluster(String cluster); ConfigCenterBuilder namespace(String namespace); ConfigCenterBuilder group(String group); ConfigCenterBuilder username(String username); ConfigCenterBuilder password(String password); ConfigCenterBuilder timeout(Long timeout); ConfigCenterBuilder highestPriority(Boolean highestPriority); ConfigCenterBuilder check(Boolean check); ConfigCenterBuilder configFile(String configFile); ConfigCenterBuilder appConfigFile(String appConfigFile); ConfigCenterBuilder appendParameters(Map<String, String> appendParameters); ConfigCenterBuilder appendParameter(String key, String value); ConfigCenterConfig build();  }
@Test void appendParameter() { ConfigCenterBuilder builder = new ConfigCenterBuilder(); builder.appendParameter("default.num", "one").appendParameter("num", "ONE"); Map<String, String> parameters = builder.build().getParameters(); Assertions.assertTrue(parameters.containsKey("default.num")); Assertions.assertEquals("ONE", parameters.get("num")); }