use rpki::data_model::aspa::AspaObject;

#[test]
fn verify_aspa_cms_signature_with_embedded_ee_cert() {
    let der = std::fs::read(
        "tests/fixtures/repository/chloe.sobornost.net/rpki/RIPE-nljobsnijders/5m80fwYws_3FiFD7JiQjAqZ1RYQ.asa",
    )
    .expect("read ASPA fixture");
    let aspa = AspaObject::decode_der(&der).expect("decode aspa");
    aspa.signed_object
        .verify_signature()
        .expect("ASPA CMS signature should verify with embedded EE cert");
}
