in plasma-store/src/tests.rs [157:177]
fn plasma_client_contains_many() {
let pc = build_client();
let meta = [1, 2, 3, 4];
// put objects into the store
let oid1 = ObjectId::rand();
let data1 = [1u8, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
pc.create_and_seal(oid1.clone(), &data1, &meta).unwrap();
let oid2 = ObjectId::rand();
let data2 = [1u8, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31];
pc.create_and_seal(oid2.clone(), &data2, &meta).unwrap();
// check which objects are in the store
let oids = [oid1.clone(), oid2.clone(), ObjectId::rand()];
let result = pc.contains_many(&oids).unwrap();
assert_eq!(2, result.len(), "two results should be found");
assert_eq!(oid1, result[0], "oid1 data should match");
assert_eq!(oid2, result[1], "oid2 data should match");
}