def METHOD_NAME(tmp_path, mocker, yaml_document, option_based_raw_headers, expected_merged_headers):
    mocker.patch.object(api_http_headers.click, "echo")
    if yaml_document is not None:
        yaml_file_path = tmp_path / "api_http_headers.yaml"
        yaml_file_path.write_text(yaml_document)
    else:
        yaml_file_path = None
    assert api_http_headers.merge_api_headers(option_based_raw_headers, yaml_file_path) == expected_merged_headers
    if option_based_raw_headers and yaml_file_path:
        api_http_headers.click.echo.assert_called_with(
            "ℹ️  - You passed API HTTP headers in a file and in options at the same time. Option based headers will override file based headers."
        )