final String propValue = "PV_" + name;
final Node child = nodeType == null ? root.addNode(name) : root.addNode(name, nodeType);
child.setProperty(propName, propValue);
child.setProperty("foo", child.getPath());
s.save();
s.logout();
s = repository.loginAdministrative(null);
final Node n = s.getNode("/" + name);
assertNotNull(n);
assertEquals(propValue, n.getProperty(propName).getString());
return n.getPath();