assertHasError(ex, Status.CONFLICT, "ROLE-7");
}
}
public void testCreateEnterpriseRole() {
Role entRole = Role.Builder.fromRole(env.role).build();
entRole.setName(entRole.getName() + "enterprise");
entRole.setEnterprise(env.enterprise);
entRole.save();
entRole = env.enterprise.findRole(RolePredicates.name(entRole.getName()));
assertNotNull(entRole);
}