@Test
public void reportsFailureOnBadXml() {

    XmlXPathReplace xmlElement = new XmlXPathReplace("blah", "test")
            .relative("src/main/resources/couchdb.properties");
    TOExecutionResult executionResult = xmlElement.execution(transformedAppFolder, transformationContext);
    Assert.assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
    Assert.assertNotNull(executionResult.getException());
    Assert.assertEquals(executionResult.getException().getClass(), TransformationOperationException.class);
    Assert.assertEquals(executionResult.getException().getMessage(),
            "File content could not be parsed properly in XML format");
}