@Test
public void moveToFileOrDirExsistingRenamed() throws TaskOutputVisitException, IOException {

    File outFile = folder.newFile();
    DefaultMultipleOutputWriter victim = new DefaultMultipleOutputWriter(ExistingOutputPolicy.RENAME, context);
    victim.addOutput(FileOutput.file(folder.newFile()).name(outFile.getName()));
    new FileOrDirectoryTaskOutput(outFile.getParentFile()).accept(victim);
    assertEquals(2, outFile.getParentFile().list().length);
}