assertNotNull(constraints);
assertTrue(constraints.getOwner().equals("new-user"));
List secs = constraints.getSecurityConstraints();
assertNotNull(secs);
assertTrue(secs.size() == 1);
SecurityConstraint constraint = (SecurityConstraint)secs.get(0);
assertNotNull(constraint);
assertTrue(constraint.getUsers() != null);
assertTrue(constraint.getUsers().size() == 2);
assertTrue(Shared.makeCSVFromList(constraint.getUsers()).equals("user10,user11"));
assertTrue(constraint.getRoles() != null);
assertTrue(constraint.getRoles().size() == 1);
assertTrue(Shared.makeCSVFromList(constraint.getRoles()).equals("*"));
assertTrue(constraint.getPermissions() != null);
assertTrue(constraint.getPermissions().size() == 2);
assertTrue(Shared.makeCSVFromList(constraint.getPermissions()).equals("edit,view"));
List refs = constraints.getSecurityConstraintsRefs();
assertNotNull(refs);
assertTrue(refs.size() == 1);
String ref = (String)refs.get(0);
assertNotNull(ref);