owner1, Access.ALL));
owner1Role.addUser(user);
roleCurator.create(owner1Role);
Set<Permission> perms = new HashSet<Permission>();
perms.add(new UsernameConsumersPermission(user, owner1));
Principal userPrincipal = new UserPrincipal(user.getUsername(), perms, false);
List<Owner> owners = userResource.listUsersOwners(user.getUsername(),
userPrincipal);
assertEquals(1, owners.size());