@Test
public void nonDirectoryTest() {

    MoveDirectory moveDirectory = new MoveDirectory().relative("pom.xml").setToRelative("src/main/resources");
    TOExecutionResult executionResult = moveDirectory.execution(transformedAppFolder, transformationContext);
    assertEquals(moveDirectory.getToRelative(), "src/main/resources");
    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, "pom.xml").getAbsolutePath() + "' is not a directory");
    assertEquals(moveDirectory.getDescription(), "Move a directory from pom.xml to src/main/resources");
    assertNull(executionResult.getDetails());
}