xstream.addImplicitMap(SampleMaps.class, "bad", "bad", Software.class, "name");
assertBothWays(sample, expected);
}
public void testWithImplicitNameMatchingTheNameOfTheFieldWithTheMap() {
SampleMaps sample = new SampleMaps();
sample.bad = new OrderRetainingMap();
sample.bad.put("Windows", new Software("Microsoft", "Windows"));
sample.bad.put("Linux", new Software("Red Hat", "Linux"));
String expected = "" +