@Test
public void testReformat_differentFormat() throws IOException {

  // - preparation
  final Path propertiesRootDirectory= this.tmpFolder.getRoot().toPath();
  final File f1= createI18nBundle(propertiesRootDirectory, ""
    + "key1 = value1\n"
    + "key2 : value2\r"
    + "key3   value3\r\n");
  final File f2= createI18nBundle(propertiesRootDirectory, ""
    + "  key1 =  value1\n"
    + " key2 :   value2\r"
    + "\tkey3    value3\r\n");
  final FileMatcher fileMatcher= new FileMatcher(propertiesRootDirectory, new String[]{"**/*.properties"}, new String[]{""});
  // - execution
  new KiltReformatter()
    .reformat(fileMatcher, "<key>\\t=\\t<value>\\n", false, UTF_8);
  // - verification
  assertThat(contentOf(f1)).isEqualTo(""
    + "key1\t=\tvalue1\n"
    + "key2\t=\tvalue2\n"
    + "key3\t=\tvalue3\n");
  assertThat(contentOf(f2)).isEqualTo(""
    + "key1\t=\tvalue1\n"
    + "key2\t=\tvalue2\n"
    + "key3\t=\tvalue3\n");
}