// [Issue#66], implicit property from "XmlText"
public void testIssue66() throws Exception
{
JacksonXmlModule module = new JacksonXmlModule();
module.setDefaultUseWrapper(false);
XmlMapper mapper = new XmlMapper(module);
final String XML = "<Issue66Bean id=\"id\">text</Issue66Bean>";
// let's start with deserialization
Issue66Bean node = mapper.readValue(XML, Issue66Bean.class);
assertEquals("id", node.id);
assertEquals("text", node.textValue);
// Let's serialize too
String json = mapper.writeValueAsString(node);
assertEquals(XML, json);
}