PomAddManagedDependency extends AbstractArtifactPomOperation<PomAddManagedDependency> implements AddElement<PomAddManagedDependency> { @Override public String getDescription() { return String.format(DESCRIPTION, groupId, artifactId, version, getRelativePath()); } PomAddManagedDependency();  PomAddManagedDependency(String groupId, String artifactId, String version);  PomAddManagedDependency(String groupId, String artifactId, String version, String scope); PomAddManagedDependency setVersion(String version); PomAddManagedDependency setScope(String scope); PomAddManagedDependency setType(String type); @Override PomAddManagedDependency failIfPresent(); @Override PomAddManagedDependency warnNotAddIfPresent(); @Override PomAddManagedDependency warnButAddIfPresent(); @Override PomAddManagedDependency noOpIfPresent(); @Override PomAddManagedDependency overwriteIfPresent(); String getVersion(); String getScope(); String getType(); @Override String getDescription();  }
@Test public void getDescriptionTest() throws IOException, XmlPullParserException { PomAddManagedDependency uut = new PomAddManagedDependency("org.testng", "testng", "1.1").relative("pom.xml"); String description = uut.getDescription(); Assert.assertEquals(description, "Add managed dependency org.testng:testng:1.1 to POM file pom.xml"); }