@Test
public void test11ModifyGroupsVisibilitySetOne() {

	setup();
	XXGroupDao xxGroupDao = Mockito.mock(XXGroupDao.class);
	VXGroup vXGroup = vxGroup();
	XXGroup xxGroup = new XXGroup();
	HashMap<Long, Integer> groupVisibilityMap = new HashMap<Long, Integer>();
	Integer value = 1;
	groupVisibilityMap.put(userId, value);
	Mockito.when(daoManager.getXXGroup()).thenReturn(xxGroupDao);
	Mockito.when(xxGroupDao.getById(vXGroup.getId())).thenReturn(xxGroup);
	Mockito.when(xGroupService.populateViewBean(xxGroup)).thenReturn(vXGroup);
	Mockito.when(xGroupService.updateResource(vXGroup)).thenReturn(vXGroup);
	xUserMgr.modifyGroupsVisibility(groupVisibilityMap);
	Assert.assertEquals(value, vXGroup.getIsVisible());
	Assert.assertEquals(userId, vXGroup.getId());
	Mockito.verify(daoManager).getXXGroup();
	Mockito.verify(xGroupService).populateViewBean(xxGroup);
	Mockito.verify(xGroupService).updateResource(vXGroup);
}