@Test
public void updateFilname() throws IOException {

    Map<String, File> files = new LinkedHashMap<>();
    File dest = folder.newFolder();
    files.put("1_of_[TOTAL_FILESNUMBER].pdf", folder.newFile());
    files.put("2_of_[TOTAL_FILESNUMBER].pdf", folder.newFile());
    OutputWriterHelper.moveToDirectory(files, dest, ExistingOutputPolicy.SKIP, context);
    assertEquals(2, dest.list().length);
    assertEquals(2, context.notifiableTaskMetadata().taskOutput().size());
    assertEquals("1_of_2.pdf", context.notifiableTaskMetadata().taskOutput().get(0).getName());
    assertEquals("2_of_2.pdf", context.notifiableTaskMetadata().taskOutput().get(1).getName());
}