void () { final CompositePackagingElement<?> root = createRoot(); assertSame(root, dir(root, "")); assertSame(root, dir(root, "/")); assertLayout(root, "root/\n"); assertLayout(dir(root, "sub"), "sub/\n"); assertLayout(root, """ root/ sub/ """); assertLayout(dir(root, "/sub/subsub"), "subsub/\n"); assertLayout(root, """ root/ sub/ subsub/ """); dir(root, "/sub2/sub3/"); assertLayout(root, """ root/ sub/ subsub/ sub2/ sub3/ """); }