protected function getFieldDefinitionListMock()
{
$mock = $this->getMock('eZ\\Publish\\Core\\REST\\Client\\Values\\FieldDefinitionList', array(), array(), '', false);
$mock->expects($this->any())->method('getFieldDefinitions')->will($this->returnValue($this->getFieldDefinitions()));
return $mock;
}