# TwiML
```rust
#[test]
fn twiml_response() {
let resp = Response::new()
.say("Hello World")
.play("https://api.twilio.com/Cowbell.mp3")
.build();
let s = "Hello Worldhttps://api.twilio.com/Cowbell.mp3";
assert_eq!(resp.unwrap(), s.to_string());
}
#[test]
fn twiml_resp_build() {
let resp = Response::new()
.say(Say::new("Hello World").lang("de").voice(Voice::alice))
.play("https://api.twilio.com/Cowbell.mp3")
.build();
let s = "Hello Worldhttps://api.twilio.com/Cowbell.mp3";
assert_eq!(resp.unwrap(), s.to_string());
}
#[test]
fn twiml_say() {
let say = Say::new("Hello World")
.lang("de")
.voice(Voice::alice)
.build();
let s = "Hello World";
assert_eq!(say.unwrap(), s.to_string());
}
#[test]
fn twiml_play() {
let play = Play::new("https://api.twilio.com/Cowbell.mp3")
.count(3)
.build();
let s = "https://api.twilio.com/Cowbell.mp3";
assert_eq!(play.unwrap(), s.to_string());
}
#[test]
fn twiml_response_dial() {
let resp = Response::new().dial("415-123-4567").build();
let s = "415-123-4567";
assert_eq!(resp.unwrap(), s.to_string());
}
#[test]
fn twiml_response_hangup() {
let resp = Response::new().hangup().build();
let s = "";
assert_eq!(resp.unwrap(), s.to_string());
}
```