public function testGetXmlValueException()
 {
     $xml = new SimpleXMLElement('<root><child a="b">foo</child><child a="c">bar</child></root>');
     try {
         $r = $this->builder->getXmlValue($xml, '//child');
     } catch (Exception $e) {
         $this->assertStringStartsWith('Too many elements for', $e->getMessage());
         return;
     }
     $this->fail('No exception thrown.');
 }
 public function setUp()
 {
     parent::setUp();
     $this->builder = $this->getContainer()->get('journalbuilder');
     $this->journal = $this->builder->fromXml($this->getDepositXml(), '1B4D7E02-06B9-4791-8762-B6DF064DE1DA');
 }