@Test public void line_with_fullcomment_when_empty_lines_before_structure_changes() { String source = "\n#In line2\na: value1"; String expected = "#In line2\na: value1"; String result = formatterToTest.format(source); assertEquals(expected,result); }
public String format(String source) { return format(source, null); }
YamlSourceFormatter { public String format(String source) { return format(source, null); } }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  String format(String source); String format(String source, YamlSourceFormatterConfig config); }
YamlSourceFormatter { public String format(String source) { return format(source, null); }  String format(String source); String format(String source, YamlSourceFormatterConfig config);  }