def METHOD_NAME(app):
    text = ('.. index:: abc\n'
            '.. index:: def\n'
            '.. index:: ghi\n'
            '.. index:: jkl\n'
            '\n'
            'text\n')
    doctree = restructuredtext.parse(app, text)
    assert_node(doctree, (addnodes.index,
                          addnodes.index,
                          addnodes.index,
                          addnodes.index,
                          nodes.target,
                          nodes.target,
                          nodes.target,
                          nodes.target,
                          nodes.paragraph))
    assert_node(doctree[0], addnodes.index, entries=[('single', 'abc', 'index-0', '', None)])
    assert_node(doctree[1], addnodes.index, entries=[('single', 'def', 'index-1', '', None)])
    assert_node(doctree[2], addnodes.index, entries=[('single', 'ghi', 'index-2', '', None)])
    assert_node(doctree[3], addnodes.index, entries=[('single', 'jkl', 'index-3', '', None)])
    assert_node(doctree[4], nodes.target, refid='index-0')
    assert_node(doctree[5], nodes.target, refid='index-1')
    assert_node(doctree[6], nodes.target, refid='index-2')
    assert_node(doctree[7], nodes.target, refid='index-3')
    # assert_node(doctree[8], nodes.paragraph)