@Test
public void testFullSectionHirarchy() {
try {
final XdocFile file = this._parseHelperExtensions.getDocFromFile((ParserTestConstants.TEST_FILE_DIR + "downToSection4Test.xdoc"));
AbstractSection _mainSection = file.getMainSection();
final Document doc = ((Document) _mainSection);
TextOrMarkup _title = doc.getTitle();
EList<EObject> _contents = _title.getContents();
int _size = _contents.size();
Assert.assertEquals(1, _size);
TextOrMarkup _title_1 = doc.getTitle();
EList<EObject> _contents_1 = _title_1.getContents();
EObject _head = IterableExtensions.<EObject>head(_contents_1);
TextPart textPart = ((TextPart) _head);
String _text = textPart.getText();
Assert.assertEquals("foo", _text);
EList<Chapter> _chapters = doc.getChapters();
int _size_1 = _chapters.size();
Assert.assertEquals(1, _size_1);
EList<Chapter> _chapters_1 = doc.getChapters();
final Chapter chapter = IterableExtensions.<Chapter>head(_chapters_1);
TextOrMarkup _title_2 = chapter.getTitle();
EList<EObject> _contents_2 = _title_2.getContents();
int _size_2 = _contents_2.size();
Assert.assertEquals(1, _size_2);