@Test
public void test35deleteXGroupPermission() {

	XXGroupPermissionDao xGrpPermDao = Mockito.mock(XXGroupPermissionDao.class);
	XXGroupPermission xGroupPermissionObj = xxGroupPermission();
	Mockito.when(daoManager.getXXGroupPermission()).thenReturn(xGrpPermDao);
	Mockito.when(xGrpPermDao.getById(1L)).thenReturn(xGroupPermissionObj);
	XXGroupUserDao xGrpUserDao = Mockito.mock(XXGroupUserDao.class);
	Mockito.when(daoManager.getXXGroupUser()).thenReturn(xGrpUserDao);
	List<XXGroupUser> xXGroupUserList = new ArrayList<XXGroupUser>();
	VXGroupUser vxGroupUser = vxGroupUser();
	XXGroupUser xXGroupUser =new XXGroupUser();
	xXGroupUser.setId(vxGroupUser.getId());
	xXGroupUser.setName(vxGroupUser.getName());
	xXGroupUser.setParentGroupId(vxGroupUser.getParentGroupId());
	xXGroupUser.setUserId(vxGroupUser.getUserId());
	xXGroupUserList.add(xXGroupUser);
	Mockito.when(xGrpUserDao.findByGroupId(xGroupPermissionObj.getGroupId())).thenReturn(xXGroupUserList);
	UserSessionBase userSession = Mockito.mock(UserSessionBase.class);
	Set<UserSessionBase> userSessions = new HashSet<UserSessionBase>();
	userSessions.add(userSession);
	Mockito.when(sessionMgr.getActiveUserSessionsForXUserId(userId)).thenReturn(userSessions);
	Mockito.when(xGroupPermissionService.deleteResource(1L)).thenReturn(true);
	xUserMgr.deleteXGroupPermission(1L, true);
	Mockito.verify(xGroupPermissionService).deleteResource(1L);
}