PomRemovePlugin extends AbstractArtifactPomOperation<PomRemovePlugin> implements ChangeOrRemoveElement<PomRemovePlugin> { @Override public PomRemovePlugin warnIfNotPresent() { ifNotPresent = IfNotPresent.Warn; return this; } PomRemovePlugin();  PomRemovePlugin(String groupId, String artifactId); @Override PomRemovePlugin failIfNotPresent(); @Override PomRemovePlugin warnIfNotPresent(); @Override PomRemovePlugin noOpIfNotPresent(); @Override String getDescription(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void pluginNotPresentWarnTest() throws IOException, XmlPullParserException, ParserConfigurationException, SAXException { PomRemovePlugin pomRemovePlugin = new PomRemovePlugin("com.zoo", "zoo").relative("pom.xml").warnIfNotPresent(); TOExecutionResult executionResult = pomRemovePlugin.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.WARNING); assertEqualsXml("pom.xml"); }