private function getFieldTypeParserMock()
{
$fieldTypeParserMock = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Input\\FieldTypeParser', array(), array($this->getMock('eZ\\Publish\\Core\\REST\\Client\\ContentService', array(), array(), '', false), $this->getContentTypeServiceMock(), $this->getMock('eZ\\Publish\\Core\\REST\\Client\\FieldTypeService', array(), array(), '', false)), '', false);
$fieldTypeParserMock->expects($this->any())->method('parseValue')->with('ezstring', array())->will($this->returnValue('foo'));
return $fieldTypeParserMock;
}