public void testProvisionRole() throws Exception {
Tenant tenant = this.tenantAggregate();
Role role = tenant.provisionRole("Manager", "A manager role.");
DomainRegistry.roleRepository().add(role);
assertEquals(1, DomainRegistry.roleRepository().allRoles(tenant.tenantId()).size());
}
public void testRoleUniqueness() throws Exception {
Tenant tenant = this.tenantAggregate();
Role role1 = tenant.provisionRole("Manager", "A manager role.");