@Test
public void test1CreateXGroupUserWithOutLogin() {

	XXGroupUser resource = createXXGroupUser();
	Mockito.when(daoManager.getXXGroupUser()).thenReturn(xXGroupUserDao);
	Mockito.when(xXGroupUserDao.findByGroupNameAndUserId(resource.getName(), resource.getId()))
			.thenReturn(resource);
	Mockito.when(daoManager.getXXGroup()).thenReturn(xXGroupDao);
	XXGroup xGroup = createXXGroup();
	VXGroupUser vxGroupUser = createVXGroupUser();
	Mockito.when(xXGroupDao.findByGroupName(vxGroupUser.getName())).thenReturn(xGroup);
	Mockito.when(daoManager.getXXPortalUser()).thenReturn(xXPortalUserDao);
	Mockito.when(xXPortalUserDao.getById(vxGroupUser.getId())).thenReturn(tUser);
	Mockito.when(entityDao.update(resource)).thenReturn(resource);
	xGroupUserService.createXGroupUserWithOutLogin(vxGroupUser);
}