### Question:
YamlTreeImpl implements YamlTree { @Override public String toYaml(Map<String, String> flatProperties) { Map<String, Object> tree = new TreeCreator().toTree(flatProperties); return new YamlDumper().toYamlFromTree(tree); } YamlTreeImpl();  YamlTreeImpl(boolean addEmptyLineAfterSections); @Override String toYaml(Map<String, String> flatProperties);  }### Answer:
@Test void testSortOrder() { assertStringEquals( read("configFormats/yaml/sortOrder/result.yaml"), toYaml("configFormats/yaml/sortOrder/initial.yaml") ); }
@Test void testList() { assertStringEquals( read("configFormats/yaml/list/resultList.yaml"), toYaml("configFormats/yaml/list/list.yaml").replace("services: ", "services:") ); }