@Test
public void moveCreatesDirectoryTree() throws IOException {

    Map<String, File> files = new HashMap<String, File>();
    files.put("file.pdf", folder.newFile());
    Path out = Paths.get(outputFolder.newFolder().getAbsolutePath(), "this", "does", "not", "exist");
    assertFalse(Files.isDirectory(out));
    OutputWriterHelper.moveToDirectory(files, out.toFile(), ExistingOutputPolicy.OVERWRITE, context);
    assertTrue(Files.isDirectory(out));
}