@Test
public void moduleNotPresentOverwriteTest() throws IOException, SAXException, ParserConfigurationException, XmlPullParserException {

    PomAddModule pomAddModule = new PomAddModule("foo").relative("pom.xml").overwriteIfPresent();
    TOExecutionResult executionResult = pomAddModule.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    assertNull(executionResult.getException());
    assertEquals(executionResult.getWarnings().size(), 0);
    Model pomModelAfterChange = getTransformedPomModel("pom.xml");
    assertEquals(pomModelAfterChange.getModules().size(), 2);
    assertTrue(pomModelAfterChange.getModules().contains("module1"));
    assertTrue(pomModelAfterChange.getModules().contains("foo"));
IXME
ncomment this when STAX based version of this TO is implemented
      assertNotChangedFile("pom.xml");
}