ConfigCenterBuilder extends AbstractBuilder<ConfigCenterConfig, ConfigCenterBuilder> { public ConfigCenterBuilder appendParameters(Map<String, String> appendParameters) { this.parameters = appendParameters(this.parameters, appendParameters); 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 appendParameters() { Map<String, String> source = new HashMap<>(); source.put("default.num", "one"); source.put("num", "ONE"); ConfigCenterBuilder builder = new ConfigCenterBuilder(); builder.appendParameters(source); Map<String, String> parameters = builder.build().getParameters(); Assertions.assertTrue(parameters.containsKey("default.num")); Assertions.assertEquals("ONE", parameters.get("num")); }