public function testMarshall()
 {
     $section = new ExtendedAssessmentSection('S01', 'Section 01', true);
     $section->setSectionParts(new SectionPartCollection(array(new AssessmentSectionRef('SR01', './SR01.xml'))));
     $section->setRubricBlockRefs(new RubricBlockRefCollection(array(new RubricBlockRef('R01', './R01.xml'))));
     $factory = new CompactMarshallerFactory();
     $marshaller = $factory->createMarshaller($section);
     $elt = $marshaller->marshall($section);
     $this->assertEquals('assessmentSection', $elt->nodeName);
     $this->assertEquals('S01', $elt->getAttribute('identifier'));
     $this->assertEquals('Section 01', $elt->getAttribute('title'));
     $this->assertEquals('true', $elt->getAttribute('visible'));
     $assessmentSectionRefElts = $elt->getElementsByTagName('assessmentSectionRef');
     $this->assertEquals(1, $assessmentSectionRefElts->length);
     $assessmentSectionRefElt = $assessmentSectionRefElts->item(0);
     $this->assertEquals('SR01', $assessmentSectionRefElt->getAttribute('identifier'));
     $this->assertEquals('./SR01.xml', $assessmentSectionRefElt->getAttribute('href'));
     $rubricBlockRefElts = $elt->getElementsByTagName('rubricBlockRef');
     $this->assertEquals(1, $rubricBlockRefElts->length);
     $rubricBlockRefElt = $rubricBlockRefElts->item(0);
     $this->assertEquals('R01', $rubricBlockRefElt->getAttribute('identifier'));
     $this->assertEquals('./R01.xml', $rubricBlockRefElt->getAttribute('href'));
 }