public function testGetClosureFieldType()
{
$fieldTypes = array('one' => $this->getClosure($this->getFieldTypeMock()));
$registry = new FieldTypeRegistry($fieldTypes);
$fieldType = $registry->getFieldType('one');
$this->assertInstanceOf('eZ\\Publish\\SPI\\FieldType\\FieldType', $fieldType);
}