n.setProperty("myref", ref);
superuser.save();
String p = n.getPath();
VersionManager vMgr = superuser.getWorkspace().getVersionManager();
Version v1 = vMgr.checkpoint(p);
Node frozen = v1.getFrozenNode();
assertEquals("ref", ref.getPath(), frozen.getProperty("myref").getNode().getPath());
checkReferences("ref in version store", ref.getReferences(), n.getPath() + "/myref");