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: utils.rs
    path of file: ./repos/risc0/bonsai/ethereum-relay/src/tests
    
    the code of the file until where you have to start completion: // Copyright 2024 RISC Zero, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use bonsai_ethereum_contracts::i_bonsai_relay::CallbackRequestFilter;
use bonsai_sdk::alpha::{
    responses::{CreateSessRes, SessionStatusRes, SnarkReceipt, SnarkStatusRes},
    SessionId,
};
use ethers::types::{Address, Bytes, H256};
use risc0_zkvm::{
    sha::Digest, ExitCode, Groth16Seal, InnerReceipt, Journal, MaybePruned, Receipt, ReceiptClaim,
};
use uuid::Uuid;
use wiremock::{
    matchers::{method, path},
    Mock, MockServer, ResponseTemplate,
};

use crate::downloader::event_processor::EventProcessor;

pub(crate) async fn get_test_bonsai_server() -> (Session
    
pub(crate) async fn get_test_bonsai_server() -> (SessionId, MockServer) {
    // Mock API server
    let server = MockServer::start().await;

    let receipt_id = Uuid::new_v4();

    // Mock receipt response
    let status_response = SessionStatusRes {
        status: "SUCCEEDED".to_string(),
        receipt_url: Some(format!("{}/fake/receipt/path", server.uri())),
        error_msg: None,
        state: None,
        elapsed_time: None,
        stats: None,
    };

    let receipt_data_response = Receipt {
        journal: Journal::new(vec![]),
        inner: InnerReceipt::Fake {
            claim: ReceiptClaim {
                pre: MaybePruned::Pruned(Digest::ZERO),
                post: MaybePruned::Pruned(Digest::ZERO),
                exit_code: ExitCode::Halted(0),
                input: Digest::ZERO,
                output: None.into(),
            },
        },
    };

    let create_snark_res = CreateSessRes {
        uuid: receipt_id.to_string(),
    };
    let zeroes = vec![0x0];
    let a = vec![zeroes.clone(), zeroes.clone()];
    let b = vec![
        vec![zeroes.clone(), zeroes.clone()],
        vec![zeroes.clone(), zeroes.clone()],
    ];
    let c = vec![zeroes.clone(), zeroes.clone()];
    let dummy_snark = Some(SnarkReceipt {
        snark: Groth16Seal { a, b, c },
        post_state_digest: vec![],
        journal: vec![],
    });
    let snark_status_res = SnarkStatusRes {
        status: "SUCCEEDED".to_string(),
        output: dummy_snark,
        error_msg: None,
    };

    Mock::given(method("POST"))
        .and(path(format!("inputs/upload")))
        .respond_with(ResponseTemplate::new(200).set_body_json(&receipt_id))
        .mount(&server)
        .await;

    Mock::given(method("GET"))
        .and(path(format!("sessions/status/{receipt_id}")))
        .respond_with(ResponseTemplate::new(200).set_body_json(&status_response))
        .mount(&server)
        .await;

    Mock::given(method("POST"))
        .and(path(format!("snark/create")))
        .respond_with(ResponseTemplate::new(200).set_body_json(&create_snark_res))
        .mount(&server)
        .await;

    Mock::given(method("GET"))
        .and(path(format!("snark/status/{receipt_id}")))
        .respond_with(ResponseTemplate::new(200).set_body_json(&snark_status_res))
        .mount(&server)
        .await;

    Mock::given(method("GET"))
        .and(path(format!("fake/receipt/path")))
        .respond_with(
            ResponseTemplate::new(200)
                .set_body_bytes(bincode::serialize(&receipt_data_response).unwrap()),
        )
        .mount(&server)
        .await;

    (SessionId::new(receipt_id.to_string()), server)
}