PomGetParent extends AbstractPomGetUtility<PomGetParent> { @Override public String getDescription() { return String.format(DESCRIPTION); } PomGetParent();  PomGetParent(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); PomGetParent pomGetParent = new PomGetParent("ATT"); assertEquals(pomGetParent.getDescription(), "Retrieve the parent Maven coordinates of specified Maven POM module"); TUExecutionResult executionResult = pomGetParent.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); assertEquals(executionResult.getValue(), "com.test:foo-parent:1.0"); }