public function testMarshall()
 {
     $stylesheet = new Stylesheet('./stylesheet.css');
     $h3 = new H3();
     $h3->setContent(new InlineCollection(array(new TextRun('Be carefull kiddo!'))));
     $p = new P();
     $p->setContent(new InlineCollection(array(new TextRun('Read the instructions twice.'))));
     $rubricBlock = new RubricBlock(new ViewCollection(array(View::CANDIDATE, View::TUTOR)));
     $rubricBlock->setClass('warning');
     $rubricBlock->setContent(new FlowStaticCollection(array($h3, $p)));
     $rubricBlock->setStylesheets(new StylesheetCollection(array($stylesheet)));
     $element = $this->getMarshallerFactory('2.1.0')->createMarshaller($rubricBlock)->marshall($rubricBlock);
     $dom = new DOMDocument('1.0', 'UTF-8');
     $element = $dom->importNode($element, true);
     $this->assertEquals('<rubricBlock view="candidate tutor" class="warning"><h3>Be carefull kiddo!</h3><p>Read the instructions twice.</p><stylesheet href="./stylesheet.css" media="screen" type="text/css"/></rubricBlock>', $dom->saveXML($element));
 }