public class CollectionsTest extends AbstractAcceptanceTest {
public void testListsCanContainCustomObjects() {
SampleLists lists = new SampleLists();
lists.good.add(new Software("apache", "geronimo"));
lists.good.add(new Software("caucho", "resin"));
lists.good.add(new Hardware("risc", "strong-arm"));
lists.bad.add(new Software("apache", "jserv"));
xstream.alias("lists", SampleLists.class);
xstream.alias("software", Software.class);
xstream.alias("hardware", Hardware.class);