public function testMoveUserGroup()
{
$userService = $this->repository->getUserService();
$locationService = $this->repository->getLocationService();
$userGroupToMove = $userService->loadUserGroup(42);
$parentUserGroup = $userService->loadUserGroup(12);
$userService->moveUserGroup($userGroupToMove, $parentUserGroup);
$movedUserGroup = $userService->loadUserGroup($userGroupToMove->id);
$newMainLocation = $locationService->loadLocation($movedUserGroup->getVersionInfo()->getContentInfo()->mainLocationId);
self::assertEquals($parentUserGroup->getVersionInfo()->getContentInfo()->mainLocationId, $newMainLocation->parentLocationId);
}