@Test
public void noOpNotPresentTest() throws IOException {

    PomReplaceDependency pomReplaceDependency = new PomReplaceDependency("foo", "bar", "newfoo", "newbar").relative("pom.xml").noOpIfNotPresent();
    TOExecutionResult executionResult = pomReplaceDependency.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.NO_OP);
    assertNull(executionResult.getException());
    assertEquals(executionResult.getDetails(), "Dependency foo:bar has not been replaced by newfoo:newbar in POM file /pom.xml because it is not present");
    assertNotChangedFile("pom.xml");
}