@Test public void lines_with_full_comment_and_ending_restored() { String source = "# I am line 1\n# and in line2!\napiVersion: v1 # Kubernetes rocks\n# I am line 4\n# I am line 5\nkind: Pod\nmetadata:\n name: busybox-sleep"; String expected = "# I am line 1\n# and in line2!\napiVersion: v1 # Kubernetes rocks\n# I am line 4\n# I am line 5\nkind: Pod\nmetadata:\n name: busybox-sleep"; 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);  }