### Question:
ConfigJsonGenerator { public JsonNode build() { return new ObjectMapper() .valueToTree(config); }  ConfigJsonGenerator withAdapterIn(String ... properties); ConfigJsonGenerator withAdapterOut(String ... properties); ConfigJsonGenerator withParser(String ... properties); ConfigJsonGenerator withFilter(String ... properties); JsonNode build();  }### Answer:
@Test public void build() throws IOException { JsonNode conf = new ConfigJsonGenerator() .withAdapterIn("adapterInProperty", "adapterInValue") .withAdapterOut("adapterOutProperty", "adapterOutValue") .withParser("parserProperty", "parserValue") .withFilter("filterProperty", "filterValue") .build(); checkProperty(conf, "adapterIn", "adapterInProperty", "adapterInValue"); checkProperty(conf, "adapterOut", "adapterOutProperty", "adapterOutValue"); checkProperty(conf, "parser", "parserProperty", "parserValue"); checkProperty(conf, "filter", "filterProperty", "filterValue"); }