assertTrue(tree.getChild("y").hasChild("xx"));
}
@Test
public void deepCopy() throws CommitFailedException {
Root root = session.getLatestRoot();
Tree tree = root.getTree("/");
Tree y = tree.getChild("y");
root.getTree("/x").addChild("x1");
root.copy("/x", "/y/xx");
assertTrue(y.hasChild("xx"));
assertTrue(y.getChild("xx").hasChild("x1"));
root.commit();
assertTrue(tree.hasChild("x"));
assertTrue(tree.hasChild("y"));
assertTrue(tree.getChild("y").hasChild("xx"));
assertTrue(tree.getChild("y").getChild("xx").hasChild("x1"));