def METHOD_NAME(self, generated_rows):
    yaml = """
        - object: foo
          nickname: Foo
          just_once: True
          fields:
            A: 25
        - object: bar
          fields:
            foo_reference:
                reference: Foo
            A: ${{Foo.A}}
        - object: baz
          fields:
            bar_reference:
                reference: bar
        """
    continuation_file = StringIO()
    generate(StringIO(yaml), generate_continuation_file=continuation_file)
    next_contination_file = StringIO()
    generate(
        StringIO(yaml),
        continuation_file=StringIO(continuation_file.getvalue()),
        generate_continuation_file=next_contination_file,
    )
    assert generated_rows.row_values(1, "foo_reference") == "foo(1)"
    assert generated_rows.row_values(2, "bar_reference") == "bar(1)"
    assert generated_rows.row_values(3, "foo_reference") == "foo(1)"
    assert generated_rows.row_values(4, "bar_reference") == "bar(2)"