### Question:
PomRemoveManagedDependency extends AbstractArtifactPomOperation<PomRemoveManagedDependency> implements ChangeOrRemoveElement<PomRemoveManagedDependency> { @Override public PomRemoveManagedDependency warnIfNotPresent() { ifNotPresent = IfNotPresent.Warn; return this; } PomRemoveManagedDependency();  PomRemoveManagedDependency(String groupId, String artifactId); @Override PomRemoveManagedDependency failIfNotPresent(); @Override PomRemoveManagedDependency warnIfNotPresent(); @Override PomRemoveManagedDependency noOpIfNotPresent(); @Override String getDescription();  }### Answer:
@Test public void warnNotPresentTest() throws IOException, XmlPullParserException { PomRemoveManagedDependency uut = new PomRemoveManagedDependency("com.test", "not-present").relative("pom.xml").warnIfNotPresent(); assertNull(getManagedDependencyBeforeChange(uut)); TOExecutionResult executionResult = uut.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(), MANAGED_DEPENDENCY_NOT_REMOVED_MSG); }