@Test
public void test17GetRolesForUser() {

	XXPortalUserRoleDao roleDao = Mockito.mock(XXPortalUserRoleDao.class);
	VXPortalUser userProfile = userProfile();
	XXPortalUser user = new XXPortalUser();
	user.setEmailAddress(userProfile.getEmailAddress());
	user.setFirstName(userProfile.getFirstName());
	user.setLastName(userProfile.getLastName());
	user.setLoginId(userProfile.getLoginId());
	user.setPassword(userProfile.getPassword());
	user.setUserSource(userProfile.getUserSource());
	user.setPublicScreenName(userProfile.getPublicScreenName());
	user.setId(userProfile.getId());
	XXPortalUserRole XXPortalUserRole = new XXPortalUserRole();
	XXPortalUserRole.setId(user.getId());
	XXPortalUserRole.setUserRole("ROLE_USER");
	List<XXPortalUserRole> list = new ArrayList<XXPortalUserRole>();
	list.add(XXPortalUserRole);
	Mockito.when(daoManager.getXXPortalUserRole()).thenReturn(roleDao);
	Mockito.when(roleDao.findByUserId(userId)).thenReturn(list);
	Collection<String> stringReturn = userMgr.getRolesForUser(user);
	Assert.assertNotNull(stringReturn);
	Mockito.verify(daoManager).getXXPortalUserRole();
}