@Test
public void copyDirectoryOverwrite() throws IOException {

    File dest = folder.newFolder();
    File tempFile = folder.newFile();
    Map<String, File> files = populateWithOneExisting(dest, tempFile);
    OutputWriterHelper.moveToDirectory(files, dest, ExistingOutputPolicy.OVERWRITE, context);
    assertEquals(2, dest.list().length);
    assertEquals(2, context.notifiableTaskMetadata().taskOutput().size());
}