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);
TextOrMarkup _title_3 = chapter.getTitle();
EList<EObject> _contents_3 = _title_3.getContents();
EObject _head_1 = IterableExtensions.<EObject>head(_contents_3);
textPart = ((TextPart) _head_1);
String _text_1 = textPart.getText();
Assert.assertEquals("bar", _text_1);
EList<Section> _subSections = chapter.getSubSections();
int _size_3 = _subSections.size();
Assert.assertEquals(1, _size_3);
EList<Section> _subSections_1 = chapter.getSubSections();
final Section section = IterableExtensions.<Section>head(_subSections_1);
TextOrMarkup _title_4 = section.getTitle();
EList<EObject> _contents_4 = _title_4.getContents();
int _size_4 = _contents_4.size();
Assert.assertEquals(1, _size_4);