in lambda-runtime-api-client/src/lib.rs [140:152]
fn test_set_origin() {
let base = "http://localhost:9001";
let client = Client::builder().with_endpoint(base.parse().unwrap()).build().unwrap();
let req = build_request()
.uri("/2018-06-01/runtime/invocation/next")
.body(())
.unwrap();
let req = client.set_origin(req).unwrap();
assert_eq!(
"http://localhost:9001/2018-06-01/runtime/invocation/next",
&req.uri().to_string()
);
}