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

    File out = folder.newFolder();
    DefaultMultipleOutputWriter victim = new DefaultMultipleOutputWriter(ExistingOutputPolicy.OVERWRITE, context);
    victim.addOutput(FileOutput.file(folder.newFile()).name("out.pdf"));
    new FileOrDirectoryTaskOutput(out).accept(victim);
    assertEquals(1, out.list().length);
}