ownerCurator.create(owner2);
ownerCurator.create(owner3);
// Setup a principal with access to org 1 and 2, but not 3.
Set<Permission> perms = new HashSet<Permission>();
User u = new User("fakeuser", "dontcare");
perms.add(new UsernameConsumersPermission(u, owner1));
perms.add(new OwnerPermission(owner1, Access.ALL));
perms.add(new OwnerPermission(owner2, Access.READ_ONLY)); // just read for org 2
principal = new UserPrincipal(u.getUsername(), perms, false);
setupPrincipal(principal);
}