PomGetPackaging extends AbstractPomGetUtility<PomGetPackaging> { @Override public String getDescription() { return String.format(DESCRIPTION); } PomGetPackaging();  PomGetPackaging(String modelAttributeName); @Override String getDescription();  }
@Test public void attributeTest() throws IOException, XmlPullParserException { Model pomModel = getOriginalPomModel("pom.xml"); Mockito.when(transformationContext.get("ATT")).thenReturn(pomModel); Mockito.when(transformationContext.contains("ATT")).thenReturn(true); PomGetPackaging pomGetPackaging = new PomGetPackaging("ATT"); assertEquals(pomGetPackaging.getDescription(), "Retrieve the packaging of specified Maven POM module"); TUExecutionResult executionResult = pomGetPackaging.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); assertEquals(executionResult.getValue(), "jar"); }