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/feroxbuster/src/filters
    
    the code of the file until where you have to start completion: use super::FeroxFilter;
use super::SimilarityFilter;
use crate::event_handlers::Handles;
use crate::filters::similarity::SIM_HASHER;
use crate::nlp::preprocess;
use crate::response::FeroxResponse;
use crate::utils::{logged_request, parse_url_with_raw_path};
use crate::DEFAULT_METHOD;
use anyhow::Result;
use regex::Regex;
use std::sync::Arc;

/// wrapper around logic necessary to create a SimilarityFilter
///
/// - parses given url
/// - makes request to the parsed url
/// - gathers extensions from the 
    
    async fn create_similarity_filter_is_correct() {
        let srv = MockServer::start();

        let mock = srv.mock(|when, then| {
            when.method(GET).path("/");
            then.status(200).body("this is a test");
        });

        let scans = FeroxScans::default();
        let config = Configuration {
            collect_extensions: true,
            ..Default::default()
        };

        let (test_handles, _) = Handles::for_testing(Some(Arc::new(scans)), Some(Arc::new(config)));

        let handles = Arc::new(test_handles);

        let filter = create_similarity_filter(&srv.url("/"), handles.clone())
            .await
            .unwrap();

        assert_eq!(mock.hits(), 1);

        assert_eq!(
            filter,
            SimilarityFilter {
                hash: 14897447612059286329,
                original_url: srv.url("/")
            }
        );
    }