in libazureinit/src/goalstate.rs [296:310]
fn test_parsing_goalstate() {
let goalstate: Goalstate = serde_xml_rs::from_str(GOALSTATE_STR)
.expect("Failed to parse the goalstate XML.");
assert_eq!(goalstate.container.container_id, "2".to_owned());
assert_eq!(
goalstate
.container
.role_instance_list
.role_instance
.instance_id,
"test_user_instance_id".to_owned()
);
assert_eq!(goalstate.version, "example_version".to_owned());
assert_eq!(goalstate.incarnation, "test_goal_incarnation".to_owned());
}