protected function getLocationServiceMock()
{
$locationServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\LocationService', array(), array(), '', false);
$locationServiceMock->expects($this->any())->method('newLocationUpdateStruct')->will($this->returnValue(new LocationUpdateStruct()));
return $locationServiceMock;
}