def METHOD_NAME(diagram, element_factory):
    lifeline, exec_spec = create_lifeline_with_execution_specification(
        diagram, element_factory
    )
    assert exec_spec.subject
    assert lifeline.subject
    assert exec_spec.subject.start.covered is lifeline.subject
    assert (
        exec_spec.subject.executionOccurrenceSpecification[0].covered
        is lifeline.subject
    )