@Test
public void fileDoesNotExistTest() {

    PomRemoveModule pomRemoveModule = new PomRemoveModule("zoo").relative("non_existent_file.xml").warnIfNotPresent();
    TOExecutionResult executionResult = pomRemoveModule.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    assertEquals(executionResult.getException().getMessage(), "POM file could not be modified");
    assertEquals(executionResult.getException().getCause().getClass(), FileNotFoundException.class);
    assertEquals(executionResult.getException().getCause().getMessage(), new File(transformedAppFolder, "non_existent_file.xml").getAbsolutePath() + " (No such file or directory)");
}