@Test
public void test18DeleteUserRole() {

	setup();
	XXPortalUserRoleDao roleDao = Mockito.mock(XXPortalUserRoleDao.class);
	XXPortalUserRole XXPortalUserRole = new XXPortalUserRole();
	String userRole = "ROLE_USER";
	XXPortalUser user = new XXPortalUser();
	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);
	boolean deleteValue = userMgr.deleteUserRole(userId, userRole);
	Assert.assertTrue(deleteValue);
}