@Test
public void testReorder_attachCommentToLine() throws IOException {

  // - preparation
  final Path propertiesRootDirectory= this.tmpFolder.getRoot().toPath();
  final File f1= createI18nBundle(propertiesRootDirectory, ""
    + "# Comment 1\n"
    + "key_F = F\n"
    + "key_L = L\n"
    + "\n"
    + "# Comment 2\n"
    + "key_B = B\n"
    + "# Comment 3\n"
    + "key_A = A\n"
  );
  final FileMatcher fileMatcher= new FileMatcher(propertiesRootDirectory, new String[]{"**/*.properties"}, new String[]{""});
  // - execution
  new KiltReformatter()
    .reorderByKey(fileMatcher, AttachCommentsTo.ORIG_LINE, UTF_8);
  // - verification
  assertThat(contentOf(f1)).isEqualTo(""
    + "# Comment 1\n"
    + "key_A = A\n"
    + "key_B = B\n"
    + "\n"
    + "# Comment 2\n"
    + "key_F = F\n"
    + "# Comment 3\n"
    + "key_L = L\n"
  );
}