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

    PomAddDependency uut = new PomAddDependency("xmlunit", "xmlunit", "1.7").relative("pom.xml").overwriteIfPresent().setScope("test");
    TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext);
    Assert.assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    Assert.assertNull(executionResult.getException());
    Dependency dependencyAfterChange = getDependencyInList(getTransformedPomModel("pom.xml"), "xmlunit", "xmlunit", "1.7");
    Assert.assertNotNull(dependencyAfterChange);
    Assert.assertEquals(dependencyAfterChange.getScope(), "test");
}