@Test
public void failIfNotPresentTest() throws IOException, XmlPullParserException {

    PomChangeDependency uut = new PomChangeDependency("com.paypal", "not-present").relative("pom.xml").failIfNotPresent();
    TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    assertNotNull(executionResult.getException());
    assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    assertNotChangedFile("pom.xml");
}