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());
assertEquals(owner1.getKey(), owners.get(0).getKey());