IPentahoRole pentahoRole = userRoleDao.createRole( mainTenant_1, ROLE_1, ROLE_DESCRIPTION_1, null );
pentahoRole = userRoleDao.createRole( mainTenant_1, ROLE_2, ROLE_DESCRIPTION_2, null );
pentahoRole = userRoleDao.createRole( mainTenant_1, ROLE_3, ROLE_DESCRIPTION_3, null );
userRoleDao.setUserRoles( mainTenant_1, USER_2, new String[] { ROLE_1, ROLE_2, ROLE_3 } );
UserRoleDaoUserDetailsService userDetailsService = new UserRoleDaoUserDetailsService();
userDetailsService.setUserRoleDao( userRoleDao );
userDetailsService.setDefaultRole( tenantAuthenticatedRoleName );
UserDetails userFromService = userDetailsService.loadUserByUsername( USER_2 );
assertTrue( userFromService.getUsername().equals( USER_2 ) );
assertTrue( userFromService.getPassword() != null );
assertTrue( userFromService.isEnabled() == true );
assertTrue( userFromService.getAuthorities().length == 4 );