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: e2e_application.rs
    path of file: ./repos/svix-webhooks/server/svix-server/tests/it
    
    the code of the file until where you have to start completion: // SPDX-FileCopyrightText: Â© 2022 Svix Authors
// SPDX-License-Identifier: MIT

use reqwest::StatusCode;
use svix_server::core::security::generate_org_token;
use svix_server::core::types::{BaseId, OrganizationId};
use svix_server::{
    cfg::CacheType, core::types::ApplicationUid, v1::endpoints::application::ApplicationIn,
    v1::endpoints::application::ApplicationOut,
};

use crate::utils::{
    common_calls::{application_in, common_test_list, metadata},
    get_default_test_config, start_svix_server, IgnoredResponse,
};

// NOTE: PATCHing must be tested exhaustively as if any of the boilerplate is missed then the
// operation could fail. This should probably be made into a macro if at all possible.
#[tokio::test]
async fn test_patch() {
    let (client, _jh) = start_svix_s
    
async fn test_idempotency() {
    let (client, _jh) = start_svix_server().await;

    let cfg = svix_server::cfg::load().unwrap();

    let app1: ApplicationOut = client
        .post_with_idempotency(
            "api/v1/app/",
            "1",
            ApplicationIn {
                name: "Some unique name".to_owned(),
                ..Default::default()
            },
            StatusCode::CREATED,
        )
        .await
        .unwrap();

    let app2: ApplicationOut = client
        .post_with_idempotency(
            "api/v1/app/",
            "1",
            ApplicationIn {
                name: "Some less unique name".to_owned(),
                ..Default::default()
            },
            StatusCode::CREATED,
        )
        .await
        .unwrap();

    match cfg.cache_type {
        CacheType::None => assert_ne!(app1, app2),
        _ => assert_eq!(app1, app2),
    };
}