public function testRegisterConverter()
{
$fieldTypeIdentifier = 'fieldtype_identifier';
$serviceId = 'some_service_id';
$class = 'Some\\Class';
$callback = '::foobar';
$def = new Definition();
$def->setClass($class);
$def->addTag('ezpublish.storageEngine.legacy.converter', array('alias' => $fieldTypeIdentifier, 'lazy' => true, 'callback' => $callback));
$this->setDefinition($serviceId, $def);
$this->compile();
$this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.api.storage_engine.legacy.factory', 'registerFieldTypeConverter', array($fieldTypeIdentifier, $class . $callback));
}