void () { VirtualFile file = createFile("a.txt"); final Artifact a = addArtifact(root().dir("lib").file(file)); CompositePackagingElement<?> copy = ArtifactUtil.copyFromRoot(a.getRootElement(), myProject); assertLayout(copy, "<root>\n" + " lib/\n" + " file:" + file.getPath() + "\n"); }