* See http://lists.jboss.org/pipermail/security-dev/2013-January/000650.html for more information
*/
this.identityManager.add(user);
this.identityManager.updateCredential(user, new Password("123"));
Role roleDeveloper = new SimpleRole("simple");
Role roleAdmin = new SimpleRole("admin");
this.identityManager.add(roleDeveloper);
this.identityManager.add(roleAdmin);
identityManager.grantRole(user, roleDeveloper);