PomRemoveDependency extends AbstractArtifactPomOperation<PomRemoveDependency> implements ChangeOrRemoveElement<PomRemoveDependency> { @Override public PomRemoveDependency noOpIfNotPresent() { ifNotPresent = IfNotPresent.NoOp; return this; } PomRemoveDependency();  PomRemoveDependency(String groupId, String artifactId); @Override PomRemoveDependency failIfNotPresent(); @Override PomRemoveDependency warnIfNotPresent(); @Override PomRemoveDependency noOpIfNotPresent(); @Override String getDescription(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void noOpNotPresentTest() throws IOException, XmlPullParserException { PomRemoveDependency uut = new PomRemoveDependency("com.test", "not-present").relative("pom.xml").noOpIfNotPresent(); assertNull(getDependencyBeforeChange(uut)); TOExecutionResult executionResult = uut.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.NO_OP); assertNull(executionResult.getException()); assertEquals(executionResult.getDetails(), DEPENDENCY_NOT_REMOVED_MSG); assertNotChangedFile("pom.xml"); }