@Test
public void nonExistentDirTest() throws IOException {

    File originalFile = new File(transformedAppFolder, "foo.xml");
    File toDir = new File(transformedAppFolder, "bar");
    assertTrue(originalFile.exists());
    assertTrue(originalFile.isFile());
    assertFalse(toDir.exists());
    // Saving original file as a temp file to have its content compared later
    File tempOriginalFile = File.createTempFile("butterfly-test-file", null);
    FileUtils.copyFile(originalFile, tempOriginalFile);
    MoveFile moveFile = new MoveFile().relative("foo.xml").setToRelative("bar");
    TOExecutionResult executionResult = moveFile.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    assertEquals(moveFile.getDescription(), "Move file foo.xml to bar");
    assertEquals(executionResult.getDetails(), "File 'foo.xml' has been moved to '/bar'");
    File movedFile = new File(transformedAppFolder, "bar/foo.xml");
    assertFalse(originalFile.exists());
    assertTrue(movedFile.exists());
    assertTrue(FileUtils.contentEquals(tempOriginalFile, movedFile));
    tempOriginalFile.delete();
}