cache.getTransactionManager().commit();
}
public void testLazyLoadingOnCacheMove() throws Exception
{
Fqn newparentToMoveTo = Fqn.fromString("/newparent");
Fqn newparent = Fqn.fromString("/newparent/parent");
Fqn newchild = Fqn.fromString("/newparent/parent/child");
cache.getTransactionManager().begin();
cache.move(parent, newparentToMoveTo);
assert !cache.getRoot().hasChild(parent) : "Node should be removed";
assert !cache.getRoot().hasChild(child) : "Node should be removed";
assert cache.getRoot().hasChild(newparent) : "Node should have moved";