PomRemoveProperty extends AbstractPomOperation<PomRemoveProperty> implements ChangeOrRemoveElement<PomRemoveProperty> { public String getPropertyName() { return propertyName; } PomRemoveProperty();  PomRemoveProperty(String propertyName); PomRemoveProperty setPropertyName(String propertyName); @Override PomRemoveProperty failIfNotPresent(); @Override PomRemoveProperty warnIfNotPresent(); @Override PomRemoveProperty noOpIfNotPresent(); String getPropertyName(); @Override String getDescription();  }
@Test public void propertyRemovedTest() throws IOException, XmlPullParserException { Model pomModelBeforeChange = getOriginalPomModel("pom.xml"); assertEquals(pomModelBeforeChange.getProperties().size(), 1); assertEquals(pomModelBeforeChange.getProperties().getProperty("encoding"), "UTF-8"); PomRemoveProperty pomRemoveProperty = new PomRemoveProperty("encoding").relative("pom.xml"); assertEquals(pomRemoveProperty.getPropertyName(), "encoding"); TOExecutionResult executionResult = pomRemoveProperty.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS); Model pomModelAfterChange = getTransformedPomModel("pom.xml"); assertEquals(pomModelAfterChange.getProperties().size(), 0); }