PomChangePackaging extends AbstractPomOperation<PomChangePackaging> { public PomChangePackaging() { } PomChangePackaging();  PomChangePackaging(String packagingType); PomChangePackaging setPackagingType(String packagingType); String getPackagingType(); @Override String getDescription(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void pomChangePackagingTest() throws IOException, XmlPullParserException { Model pomModelBeforeChange = getOriginalPomModel("pom.xml"); assertEquals(pomModelBeforeChange.getPackaging(), "jar"); PomChangePackaging pomChangePackaging = new PomChangePackaging("war").relative("pom.xml"); TOExecutionResult executionResult = pomChangePackaging.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS); Model pomModelAfterChange = getTransformedPomModel("pom.xml"); assertEquals(pomModelAfterChange.getPackaging(), "war"); }