@Test(expected = TaskOutputVisitException.class)
public void moveToFileDirExsisting() throws TaskOutputVisitException, IOException {

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