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

    DefaultMultipleOutputWriter victim = new DefaultMultipleOutputWriter(ExistingOutputPolicy.RENAME, context);
    victim.addOutput(FileOutput.file(folder.newFile()).name("a"));
    victim.addOutput(FileOutput.file(folder.newFile()).name("b"));
    new FileOrDirectoryTaskOutput(folder.newFile()).accept(victim);
}