@Test
public void existentWarnButAddTest() {

    assertTrue(new File(transformedAppFolder, "pom.xml").exists());
    TOExecutionResult executionResult = new PomFile(model).relative("/").warnButAddIfPresent().execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.WARNING);
    assertNull(executionResult.getException());
    assertEquals(executionResult.getWarnings().get(0).getClass(), TransformationOperationException.class);
    assertEquals(executionResult.getWarnings().get(0).getMessage(), "There is already a pom file at /");
    assertEquals(executionResult.getDetails(), "Pom file overwritten at /");
    checkCreatedPomFile("pom.xml");
}