}
public static Set<UserGroupMembership> getMembershipsForNameSpace(
String namespace) throws SharepointException {
Set<UserGroupMembership> memberships = new TreeSet<UserGroupMembership>();
UserGroupMembership membership1 = new UserGroupMembership(1, "user1", 2,
"group1", namespace);
memberships.add(membership1);
UserGroupMembership membership2 = new UserGroupMembership(2, "user2", 2,
"group1", namespace);
memberships.add(membership2);
UserGroupMembership membership3 = new UserGroupMembership(3, "user3", 2,
"group2", namespace);
memberships.add(membership3);
return memberships;
}