@Test
public void test62createXGroupUser() {

	setup();
	VXGroupUser vXGroupUser = vxGroupUser();
	VXGroup vxGroup=vxGroup();
	Mockito.when(xGroupService.readResource(userId)).thenReturn(vxGroup);
	Mockito.when(xGroupUserService.createResource((VXGroupUser) Mockito.any())).thenReturn(vXGroupUser);
	VXGroupUser dbVXGroupUser = xUserMgr.createXGroupUser(userId,vxGroup.getId());
	Assert.assertNotNull(dbVXGroupUser);
	Assert.assertEquals(userId, dbVXGroupUser.getId());
	Assert.assertEquals(dbVXGroupUser.getOwner(), vXGroupUser.getOwner());
	Assert.assertEquals(dbVXGroupUser.getName(), vXGroupUser.getName());
	Assert.assertEquals(dbVXGroupUser.getUserId(), vXGroupUser.getUserId());
	Assert.assertEquals(dbVXGroupUser.getUpdatedBy(),vXGroupUser.getUpdatedBy());
}