ResolvedPom { public PomWrapper getPom(int index) { return poms.get(index); } ResolvedPom(File pom);  ResolvedPom(File pom, LocalRepository repo);  ResolvedPom(PomWrapper pom, LocalRepository repo); Artifact getGAV(); PomWrapper getPom(int index); Map<GAKey,Artifact> getDirectDependencies(); Collection<ResolvedPom> getImportedPoms(); String resolveProperties(String value);  }
@Test public void testGetPom() throws Exception { File pomFile = new File("../test-dependency-child/pom.xml"); assertTrue("able to access POM", pomFile.exists()); ResolvedPom pom = new ResolvedPom(pomFile); PomWrapper child = pom.getPom(0); assertEquals("com.kdgregory.pomutil:test-dependency-child:0.0.0-SNAPSHOT", child.toString()); PomWrapper parent = pom.getPom(1); assertEquals("com.kdgregory.pomutil:test-dependency-parent:0.0.0-SNAPSHOT", parent.toString()); }