public function testToFieldValue()
{
$storageFieldValue = new StorageFieldValue();
$storageFieldValue->sortKeyString = '';
$storageFieldValue->dataText = <<<EOT
<?xml version="1.0" encoding="utf-8"?>
<related-objects><relation-list><relation-item priority="2" contentobject-id="2" contentobject-version="23" node-id="25" parent-node-id="26" contentclass-id="24" contentclass-identifier="27" contentobject-remote-id="22"/><relation-item priority="3" contentobject-id="1" contentobject-version="13" node-id="15" parent-node-id="16" contentclass-id="14" contentclass-identifier="17" contentobject-remote-id="12"/><relation-item priority="1" contentobject-id="3" contentobject-version="33" node-id="35" parent-node-id="36" contentclass-id="34" contentclass-identifier="37" contentobject-remote-id="32"/></relation-list></related-objects>
EOT;
$expectedFieldValue = new FieldValue();
$expectedFieldValue->data = array('destinationContentIds' => array(3, 2, 1));
$actualFieldValue = new FieldValue();
$this->converter->toFieldValue($storageFieldValue, $actualFieldValue);
$this->assertEquals($expectedFieldValue, $actualFieldValue);
}