diff --git a/xmpp-parsers/src/sm.rs b/xmpp-parsers/src/sm.rs
index d84b1883..e32cd839 100644
--- a/xmpp-parsers/src/sm.rs
+++ b/xmpp-parsers/src/sm.rs
@@ -227,6 +227,21 @@ mod tests {
#[test]
fn test_serialize_failed() {
- assert!(false);
+ let reference: Element = ""
+ .parse()
+ .unwrap();
+
+ let elem: Element = ""
+ .parse()
+ .unwrap();
+
+ let error = DefinedCondition::try_from(elem).unwrap();
+
+ let failed = Failed {
+ h: None,
+ error: Some(error),
+ };
+ let serialized: Element = failed.into();
+ assert_eq!(serialized, reference);
}
}