AbstractSection _mainSection = file.getMainSection();
EList<TextOrMarkup> _contents = _mainSection.getContents();
TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(_contents);
EList<EObject> _contents_1 = _head.getContents();
EObject _head_1 = IterableExtensions.<EObject>head(_contents_1);
final Ref r = ((Ref) _head_1);
AbstractSection _mainSection_1 = file.getMainSection();
Identifiable _ref = r.getRef();
Assert.assertEquals(_mainSection_1, _ref);
EList<TextOrMarkup> _contents_2 = r.getContents();
TextOrMarkup _head_2 = IterableExtensions.<TextOrMarkup>head(_contents_2);
EList<EObject> _contents_3 = _head_2.getContents();
EObject _head_3 = IterableExtensions.<EObject>head(_contents_3);
String _text = ((TextPart) _head_3).getText();
Assert.assertEquals("a Chapter", _text);