use musicbrainz_rs::entity::instrument::InstrumentType::*; use musicbrainz_rs::entity::instrument::*; use musicbrainz_rs::Search; #[tokio::test] async fn should_search_instrument() { let query = InstrumentSearchQuery::query_builder() .instrument("octobass") .build(); let result = Instrument::search(query).execute().await.unwrap(); assert!(result .entities .iter() .any(|instrument| instrument.instrument_type == StringInstrument)); }