n.addNode("anyname", "rep:User");
fail("security nodes must be protected.");
} catch (ConstraintViolationException e) {
// success
} finally {
n.refresh(false);
}
try {
n.setProperty("rep:userId", "someotherUID");
fail("security nodes must be protected.");
} catch (ConstraintViolationException e) {