@Test
public void test13IsUserInRole() {

	XXPortalUserRoleDao roleDao = Mockito.mock(XXPortalUserRoleDao.class);
	XXPortalUserRole XXPortalUserRole = new XXPortalUserRole();
	XXPortalUserRole.setId(userId);
	XXPortalUserRole.setUserRole("ROLE_USER");
	List<XXPortalUserRole> list = new ArrayList<XXPortalUserRole>();
	list.add(XXPortalUserRole);
	Mockito.when(daoManager.getXXPortalUserRole()).thenReturn(roleDao);
	Mockito.when(roleDao.findByRoleUserId(userId, "ROLE_USER")).thenReturn(XXPortalUserRole);
	boolean isValue = userMgr.isUserInRole(userId, "ROLE_USER");
	Assert.assertTrue(isValue);
	Mockito.when(roleDao.findByRoleUserId(userId, "ROLE_USER")).thenReturn(null);
	isValue = userMgr.isUserInRole(userId, "ROLE_USER");
	Assert.assertFalse(isValue);
}