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

    File out = folder.newFile();
    assertEquals(0, out.length());
    Path outFile = Files.createTempFile("sejda", ".tmp");
    Files.write(outFile, new byte[] { 0, 1, 1, 1 });
    DefaultMultipleOutputWriter victim = new DefaultMultipleOutputWriter(ExistingOutputPolicy.OVERWRITE, context);
    victim.addOutput(FileOutput.file(outFile.toFile()).name("out.pdf"));
    new FileOrDirectoryTaskOutput(out).accept(victim);
    assertEquals(4, out.length());
    Files.deleteIfExists(outFile);
}