assertBothWays(software, xml);
}
public void testForLongerPackageNameTakesPrecedence() {
WithList withList = new WithList();
withList.things.add(new Software("walness", "xstream"));
withList.things.add(new TypeA());
xstream.aliasPackage("model", "com.thoughtworks.acceptance.objects");
xstream.aliasPackage("org.codehaus", "com.thoughtworks");
xstream.aliasPackage("model.foo", "com.thoughtworks.acceptance.someobjects");