MetadataReportBuilder extends AbstractBuilder<MetadataReportConfig, MetadataReportBuilder> { public MetadataReportBuilder appendParameter(String key, String value) { this.parameters = appendParameter(this.parameters, key, value); return getThis(); }  static MetadataReportBuilder newBuilder(); MetadataReportBuilder address(String address); MetadataReportBuilder username(String username); MetadataReportBuilder password(String password); MetadataReportBuilder timeout(Integer timeout); MetadataReportBuilder group(String group); MetadataReportBuilder appendParameters(Map<String, String> appendParameters); MetadataReportBuilder appendParameter(String key, String value); MetadataReportBuilder retryTimes(Integer retryTimes); MetadataReportBuilder retryPeriod(Integer retryPeriod); MetadataReportBuilder cycleReport(Boolean cycleReport); MetadataReportBuilder syncReport(Boolean syncReport); MetadataReportConfig build();  }
@Test void appendParameter() { MetadataReportBuilder builder = new MetadataReportBuilder(); 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")); }