You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: headers.rs
    path of file: ./repos/grafbase/engine/crates/integration-tests/tests/openapi
    
    the code of the file until where you have to start completion: //! Tests of passing through headers

use std::{collections::BTreeMap, net::SocketAddr};

use integration_tests::{runtime, ResponseExt};
use wiremock::{
    matchers::{method, path},
    Mock, ResponseTemplate,
};

use super::{build_engine, doggo};

#[test]
fn test_header_passthrough() {
    runtime().block_on(async {
        let mock_server = wiremock::MockServer::start().await;
        let engine = build_engine(petstore_schema_with_header_forwarding(mock_server.address())).await;

        let mock_guard = Mock::given(method("GET"))
            .and(path("/pet/123"))
            .respond_with(ResponseTemplate::new(200).set_body_json(doggo()))
            .mount_as_scoped(&mock_server)
            .await;

        insta::assert_json_snapshot!(
            engine
                .execute(
                    r"
                    query {
                        petstore {
                            pet(petId: 123) {
                                id
                            }
                        }
                    }
                ",
                )
                .header("wow-what-a-header", "isn't it the best")
                .header("and-another-one", "yes")
                .header("a-header-that-shouldnt-be-forwarded", "ok")
                .header("Authorization", "Basic XYZ")
                .await.into_value(),
            @r###"
        {
          "data": {
            "petstore": {
              "pet": {
                "id": 123
              }
            }
          }
        }
        "###
        );

        let headers = mock_guard
            .received_requests()
            .await
            .into_iter()
            .map(|request| {
                // Wow, this is annoying...
                request
                    .headers
                    .into_iter()
                    .filter_map(|(name, value)| Some((name?.to_string(), value.to_str().ok()?.to_owned())))
                    .filter(|(name, _)| {
                        // Host changes on every test, we need to filter it out.
                        // The others are just noise so I'm also ditching them.
                        name != "host" && name != "connection" && name != "accept-encoding" && name != "mf-loop"
                    })
                    .co
    
fn test_header_passthrough() {
    runtime().block_on(async {
        let mock_server = wiremock::MockServer::start().await;
        let engine = build_engine(petstore_schema_with_header_forwarding(mock_server.address())).await;

        let mock_guard = Mock::given(method("GET"))
            .and(path("/pet/123"))
            .respond_with(ResponseTemplate::new(200).set_body_json(doggo()))
            .mount_as_scoped(&mock_server)
            .await;

        insta::assert_json_snapshot!(
            engine
                .execute(
                    r"
                    query {
                        petstore {
                            pet(petId: 123) {
                                id
                            }
                        }
                    }
                ",
                )
                .header("wow-what-a-header", "isn't it the best")
                .header("and-another-one", "yes")
                .header("a-header-that-shouldnt-be-forwarded", "ok")
                .header("Authorization", "Basic XYZ")
                .await.into_value(),
            @r###"
        {
          "data": {
            "petstore": {
              "pet": {
                "id": 123
              }
            }
          }
        }
        "###
        );

        let headers = mock_guard
            .received_requests()
            .await
            .into_iter()
            .map(|request| {
                // Wow, this is annoying...
                request
                    .headers
                    .into_iter()
                    .filter_map(|(name, value)| Some((name?.to_string(), value.to_str().ok()?.to_owned())))
                    .filter(|(name, _)| {
                        // Host changes on every test, we need to filter it out.
                        // The others are just noise so I'm also ditching them.
                        name != "host" && name != "connection" && name != "accept-encoding" && name != "mf-loop"
                    })
                    .collect::<BTreeMap<_, _>>()
            })
            .collect::<Vec<_>>();

        insta::assert_json_snapshot!(headers, @r###"
        [
          {
            "accept": "*/*",
            "another-one": "yes",
            "authorization": "Bearer BLAH",
            "content-length": "0",
            "wow-what-a-header": "isn't it the best"
          }
        ]
        "###);
    });
}