@Test
public void test10UpdateXGroup() {

	XXGroupDao xxGroupDao = Mockito.mock(XXGroupDao.class);
	XXGroupUserDao xxGroupUserDao = Mockito.mock(XXGroupUserDao.class);
	List<XXGroupUser> grpUsers =new ArrayList<XXGroupUser>();
	setup();
	VXGroup vXGroup = vxGroup();
	XXGroup xxGroup = new XXGroup();
	xxGroup.setName(groupName);
	Mockito.when(daoManager.getXXGroup()).thenReturn(xxGroupDao);
	Mockito.when(xxGroupDao.getById(vXGroup.getId())).thenReturn(xxGroup);
	Mockito.when(xGroupService.updateResource(vXGroup)).thenReturn(vXGroup);
	Mockito.when(daoManager.getXXGroupUser()).thenReturn(xxGroupUserDao);
	Mockito.when(xxGroupUserDao.findByGroupId(vXGroup.getId())).thenReturn(grpUsers);
	VXGroup dbvxGroup = xUserMgr.updateXGroup(vXGroup);
	Assert.assertNotNull(dbvxGroup);
	userId = dbvxGroup.getId();
	Assert.assertEquals(userId, dbvxGroup.getId());
	Assert.assertEquals(vXGroup.getDescription(),dbvxGroup.getDescription());
	Assert.assertEquals(vXGroup.getName(), dbvxGroup.getName());
	Mockito.verify(daoManager).getXXGroup();
	Mockito.verify(daoManager).getXXGroupUser();
	Mockito.verify(xGroupService).updateResource(vXGroup);
	Mockito.verify(xxGroupUserDao).findByGroupId(vXGroup.getId());
}