def METHOD_NAME(do_compile_test):
    with do_compile_test("""\
            ```plantuml-prefix
            title Title 1
            footer Footer 1
            ```
            ```plantuml
            Participant foo
            ```
            ```plantuml
            Participant bar
            ```
            ```plantuml-prefix
            title Title 2
            ' no footer this time
            ```
            ```plantuml
            Participant baz
            ```
            """) as compiled:
        text = compiled.document.xpath('//svg//text/text()')
        assert text.count('Title 1') == 2
        assert text.count('Footer 1') == 2
        assert text.count('Title 2') == 1