a(XPathHelper.selectText("/person/test", xml)).shouldEqual("test content");
}
@Test
public void shouldEscapeSpecialCharsInXMLContent(){
Person p = Person.create("name", "John", "last_name", "Smith & Wesson");
String xml = p.toXml(true, true);
a(XPathHelper.selectText("/person/last_name", xml)).shouldEqual("Smith & Wesson");
the(xml).shouldContain("<last_name>Smith & Wesson</last_name>");
}