xstream.addImplicitMap(SampleMaps.class, "good", null, "name");
assertBothWays(sample, expected);
}
public void testSeparatesItemsBasedOnItemName() {
SampleMaps sample = new SampleMaps();
sample.good = new OrderRetainingMap();
sample.good.put("Chrome", new Software("Google", "Chrome"));
sample.bad = new OrderRetainingMap();
sample.bad.put("Linux", new Software("Red Hat", "Linux"));
sample.bad.put("Windows", new Software("Microsoft", "Windows"));