public function testToPersistenceValue()
{
$xmlString = '<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<title>This is a heading.</title>
<para>This is a paragraph.</para>
</section>
';
$fieldType = $this->getFieldType();
$fieldValue = $fieldType->toPersistenceValue($fieldType->acceptValue($xmlString));
self::assertInternalType('string', $fieldValue->data);
self::assertSame($xmlString, $fieldValue->data);
}