@Test
public void existingOutputPolicyRENAME_noConflict() throws IOException {

    Map<String, File> files = new HashMap<String, File>();
    files.put("ok.pdf", folder.newFile());
    File outFile = new File(outputFolder.getRoot(), "ok.pdf");
    OutputWriterHelper.moveToFile(files, outFile, ExistingOutputPolicy.RENAME, context);
    assertThat(Arrays.asList(outputFolder.getRoot().list()), hasItem("ok.pdf"));
}