void () { final ElementToStringCollector processor = new ElementToStringCollector(); final Artifact a = addArtifact(root().dir("lib").file(createFile("x.jar"))); processDirectoryChildren(a.getRootElement(), "lib/", processor); assertEquals("file:" + getProjectBasePath() + "/x.jar\n", processor.getOutput()); final Artifact b = addArtifact(root().artifact(a).dir("lib").file(createFile("y.jar"))); processDirectoryChildren(b.getRootElement(), "lib", processor); assertEquals("file:" + getProjectBasePath() + "/x.jar\n" + "file:" + getProjectBasePath() + "/y.jar\n", processor.getOutput()); }