Tree pwdTree = root.getTree(user.getPath()).getChild(UserConstants.REP_PWD);
assertTrue(pwdTree.exists());
assertTrue(TreeUtil.isNodeType(pwdTree, UserConstants.NT_REP_PASSWORD, root.getTree(NodeTypeConstants.NODE_TYPES_PATH)));
ReadOnlyNodeTypeManager ntMgr = ReadOnlyNodeTypeManager.getInstance(root, getNamePathMapper());
assertTrue(ntMgr.getDefinition(pwdTree.getParent(), pwdTree).isProtected());
PropertyState property = pwdTree.getProperty(UserConstants.REP_PASSWORD_LAST_MODIFIED);
assertNotNull(property);
assertEquals(Type.LONG, property.getType());
assertTrue(property.getValue(Type.LONG, 0) > 0);