@Test
public void existentWarnNotAddTest() {

    TOExecutionResult executionResult = new PomFile(model).relative("/").warnNotAddIfPresent().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 /");
}