64656667686970717273
"</u-u>"; xstream.alias("u-u", U.class); xstream.aliasField("u-f", U.class, "aStr"); xstream.aliasField("u_f", U.class, "a_Str"); U u = (U) xstream.fromXML(xml); assertEquals("foo", u.aStr); assertEquals("_foo", u.a_Str); }
909192939495969798
" <a_Str>custom value</a_Str>" + "</u-u>"; xstream.alias("u-u", U.class); U u = (U) xstream.fromXML(xml); assertEquals("custom value", u.a_Str); }