public function testRecover()
{
$locationService = $this->repository->getLocationService();
$trashService = $this->repository->getTrashService();
$location = $locationService->loadLocation(44);
$trashItem = $trashService->trash($location);
$recoveredLocation = $trashService->recover($trashItem);
self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\Location', $recoveredLocation);
self::assertSameClassPropertiesCorrect(array('priority', 'hidden', 'invisible', 'remoteId', 'parentLocationId', 'depth', 'sortField', 'sortOrder'), $location, $recoveredLocation);
$parentLocation = $locationService->loadLocation($location->parentLocationId);
$newPathString = $parentLocation->pathString . $recoveredLocation->id . '/';
self::assertEquals($newPathString, $recoveredLocation->pathString);
self::assertGreaterThan(0, $recoveredLocation->id);
self::assertEquals($recoveredLocation->id, $recoveredLocation->contentInfo->mainLocationId);
}