### Question:
PomAddManagedDependency extends AbstractArtifactPomOperation<PomAddManagedDependency> implements AddElement<PomAddManagedDependency> { @Override public PomAddManagedDependency noOpIfPresent() { ifPresent = IfPresent.NoOp; return this; } PomAddManagedDependency();  PomAddManagedDependency(String groupId, String artifactId, String version);  PomAddManagedDependency(String groupId, String artifactId, String version, String scope); PomAddManagedDependency setVersion(String version); PomAddManagedDependency setScope(String scope); PomAddManagedDependency setType(String type); @Override PomAddManagedDependency failIfPresent(); @Override PomAddManagedDependency warnNotAddIfPresent(); @Override PomAddManagedDependency warnButAddIfPresent(); @Override PomAddManagedDependency noOpIfPresent(); @Override PomAddManagedDependency overwriteIfPresent(); String getVersion(); String getScope(); String getType(); @Override String getDescription();  }### Answer:
@Test public void noOpIfPresentTest() throws IOException, XmlPullParserException { PomAddManagedDependency uut = new PomAddManagedDependency("junit", "junit", "4.11").relative("pom.xml").noOpIfPresent(); TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext); Assert.assertEquals(executionResult.getType(), TOExecutionResult.Type.NO_OP); Assert.assertNull(executionResult.getException()); Dependency dependencyAfterChange = getManagedDependencyInList(getTransformedPomModel("pom.xml"), "junit", "junit", "4.11"); Assert.assertNull(dependencyAfterChange); assertNotChangedFile("pom.xml"); }