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

	PomRemoveManagedDependency uut = new PomRemoveManagedDependency("com.test", "not-present").relative("pom.xml").failIfNotPresent();
	assertNull(getManagedDependencyBeforeChange(uut));
	TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext);
	assertEquals(executionResult.getType(), TOExecutionResult.Type.ERROR);
	assertExceptionOccurred(executionResult);
	assertNotChangedFile("pom.xml");
}