assertEquals(product.getId(), "123");
assertEquals("" + product.getPrice(), "" + 23.00);
}
public void testWriteConfigured() {
Configuration config = new Configuration();
// TODO: Configure something useful (see XSTR-540)
xstream = new XStream(new JettisonMappedXmlDriver(config));
xstream.alias("product", Product.class);
Product product = new Product("Banana", "123", 23.00);
String result = xstream.toXML(product);