use musicbrainz_rs::entity::cdstub::*;
use musicbrainz_rs::Search;

#[tokio::test]
async fn should_search_cdstub() {
    let query = CDStubSearchQuery::query_builder().title("Dookie").build();

    let result = CDStub::search(query).execute().await.unwrap();

    assert!(result
        .entities
        .iter()
        .any(|cdstub| cdstub.artist == "Cleatus and Jimmy"));
}
