Tenant tenant = this.tenantAggregate();
User user = this.userAggregate();
DomainRegistry.userRepository().add(user);
Role managerRole = tenant.provisionRole("Manager", "A manager role.", true);
Group group = new Group(user.tenantId(), "Managers", "A group of managers.");
DomainRegistry.groupRepository().add(group);
managerRole.assignGroup(group, DomainRegistry.groupMemberService());
managerRole.assignUser(user);
DomainRegistry.roleRepository().add(managerRole);
group.addUser(user); // legal add
assertEquals(2, roleSomethingAssignedCount);
assertEquals(1, groupSomethingAddedCount);
}