protected function getLocationServiceMock()
{
$userServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\LocationService', array(), array(), '', false);
$userServiceMock->expects($this->any())->method('loadLocation')->with($this->equalTo(5))->will($this->returnValue(new Location(array('contentInfo' => new ContentInfo(array('id' => 4))))));
return $userServiceMock;
}