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: orders_tests.rs
    path of file: ./repos/paypal-rs/tests
    
    the code of the file until where you have to start completion: use paypal_rs::{
    api::orders::*,
    data::{common::AddressBuilder, orders::*},
};
use paypal_rs::{Client, PaypalEnv};
use wiremock:
    
async fn test_create_order() -> color_eyre::Result<()> {
    color_eyre::install()?;

    let mock_server = MockServer::start().await;

    let access_token: serde_json::Value = serde_json::from_str(include_str!("resources/oauth_token.json")).unwrap();

    Mock::given(method("POST"))
        .and(path("/v1/oauth2/token"))
        .and(basic_auth("clientid", "secret"))
        .and(header("Content-Type", "x-www-form-urlencoded"))
        .and(body_string("grant_type=client_credentials"))
        .respond_with(ResponseTemplate::new(200).set_body_json(&access_token))
        .mount(&mock_server)
        .await;

    let response_body: serde_json::Value =
        serde_json::from_str(include_str!("resources/create_order_response.json")).unwrap();

    Mock::given(method("POST"))
        .and(path("/v2/checkout/orders"))
        .and(bearer_token("TESTBEARERTOKEN"))
        .and(header("Content-Type", "application/json"))
        .respond_with(ResponseTemplate::new(200).set_body_json(&response_body))
        .mount(&mock_server)
        .await;

    let mut client = create_client(&mock_server.uri());

    client.get_access_token().await?;

    let order = OrderPayloadBuilder::default()
        .intent(Intent::Authorize)
        .purchase_units(vec![PurchaseUnitBuilder::default()
            .reference_id("d9f80740-38f0-11e8-b467-0ed5f89f718b")
            .amount(Amount::usd("100.00"))
            .build()?])
        .payment_source(
            OrderPaymentSourceBuilder::default()
                .card(
                    PaymentCardBuilder::default()
                        .number("4111111111111111")
                        .expiry("2020-02")
                        .name("John Doe")
                        .billing_address(
                            AddressBuilder::default()
                                .address_line_1("2211 N First Street")
                                .address_line_2("17.3.160")
                                .admin_area_1("CA")
                                .admin_area_2("San Jose")
                                .postal_code("95131")
                                .country_code("US")
                                .build()?,
                        )
                        .build()?,
                )
                .stored_credential(
                    StoredCredentialBuilder::default()
                        .payment_initiator("MERCHANT")
                        .payment_type("RECURRING")
                        .usage("SUBSEQUENT")
                        .previous_network_transaction_reference(
                            TransactionReferenceBuilder::default()
                                .id("156GHJ654SFH543")
                                .network("VISA")
                                .build()?,
                        )
                        .build()?,
                )
                .build()?,
        )
        .build()?;

    let _create_order = CreateOrder::new(order);

    Ok(())
}