@Test
public void nonExistentFromFolderTest() {

    CopyDirectory copyDirectory = new CopyDirectory().relative("nonExistentFolder").setToRelative("src/main/resources");
    TOExecutionResult executionResult = copyDirectory.execution(transformedAppFolder, transformationContext);
    assertEquals(copyDirectory.getToRelative(), "src/main/resources");
    assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    assertEquals(executionResult.getException().getMessage(), "Directory could not be copied");
    assertEquals(executionResult.getException().getCause().getMessage(), "Source '" + new File(transformedAppFolder, "nonExistentFolder").getAbsolutePath() + "' does not exist");
    assertEquals(copyDirectory.getDescription(), "Copy directory content from nonExistentFolder to src/main/resources");
    assertNull(executionResult.getDetails());
}