144145146147148149150151152
String xml = "<funny>" + " <i>999</i>" + "</funny>"; FunnyConstructor funnyConstructor = (FunnyConstructor) xstream.fromXML(xml); assertEquals(999, funnyConstructor.i); }