@Test
public void nonExistentFromFolderTest() {

    Mockito.when(transformationContext.get("ATT")).thenReturn(new File(transformedAppFolder, "/src/main/resources"));
    MoveDirectory moveDirectory = new MoveDirectory().relative("nonExistentFolder").setToAbsolute("ATT", "blah");
    TOExecutionResult executionResult = moveDirectory.execution(transformedAppFolder, transformationContext);
    assertEquals(moveDirectory.getToAbsoluteAttribute(), "ATT");
    assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    assertEquals(executionResult.getException().getMessage(), "Directory could not be moved");
    assertEquals(executionResult.getException().getCause().getMessage(), "Source '" + new File(transformedAppFolder, "nonExistentFolder").getAbsolutePath() + "' does not exist");
    assertEquals(moveDirectory.getDescription(), "Move a directory from nonExistentFolder to the location defined by transformation context attribute ATT");
    assertNull(executionResult.getDetails());
}