@Test
public void propertyNotPresentErrorTest() throws IOException {

    PomRemoveProperty pomRemoveProperty = new PomRemoveProperty("zoo").relative("pom.xml").failIfNotPresent();
    TOExecutionResult executionResult = pomRemoveProperty.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    assertEquals(executionResult.getException().getMessage(), "Property zoo has not been removed from POM file /pom.xml because it is not present");
    assertNull(executionResult.getException().getCause());
    assertNull(executionResult.getDetails());
    assertNotChangedFile("pom.xml");
    // Asserting that the default result type is ERROR, in case a property is not present
    assertEquals(new PomRemoveProperty("zoo").relative("pom.xml").execution(transformedAppFolder, transformationContext).getType(), TOExecutionResult.Type.ERROR);
}