map2 = new TreeMap<String,String>(comparator);
}
}
public void testTreeSerialization() throws Exception {
TreeData td = new TreeData();
<BUG>XStream2 xs = new XStream2();
StringWriter out = new StringWriter();
xs.toXML(td, out);</BUG>
assertEquals("empty maps", "<hudson.util.CopyOnWriteMapTest_-TreeData>"
+ "<map1><no-comparator/></map1><map2><no-comparator/></map2>"

map2 = new TreeMap<String,String>(comparator);
}
}
public void testTreeSerialization() throws Exception {
TreeData td = new TreeData();
XStream2 xs = new XStream2();
String out = xs.toXML(td);
assertEquals("empty maps", "<hudson.util.CopyOnWriteMapTest_-TreeData>"
+ "<map1><no-comparator/></map1><map2><no-comparator/></map2>"
