@Test
public void testNamedReference() {
try {
final XdocFile file = this._parseHelperExtensions.getDocFromFile(
(ParserTestConstants.TEST_FILE_DIR + "namedRefAndTextTest.xdoc"));
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();