@Test
public void test24updateRoles() {

	setup();
	Collection<String> rolesList = new ArrayList<String>();
	rolesList.add("ROLE_USER");
	rolesList.add("ROLE_SYS_ADMIN");
	XXPortalUserRole XXPortalUserRole = new XXPortalUserRole();
	XXPortalUserRole.setId(userId);
	XXPortalUserRole.setUserRole("ROLE_USER");
	List<XXPortalUserRole> list = new ArrayList<XXPortalUserRole>();
	list.add(XXPortalUserRole);
	XXPortalUserRoleDao userDao = Mockito.mock(XXPortalUserRoleDao.class);
	Mockito.when(daoManager.getXXPortalUserRole()).thenReturn(userDao);
	Mockito.when(userDao.findByUserId(userId)).thenReturn(list);
	boolean isFound = userMgr.updateRoles(userId, rolesList);
	Assert.assertFalse(isFound);
}