XStream xstream = new XStream();
xstream.addImplicitCollection(Bibliography.class, "entries");
xstream.alias("bibliography", Bibliography.class);
xstream.alias("bibliography-entry", BibliographyEntry.class);
Bibliography bibliography = (Bibliography) xstream.fromXML(new File(
"src/test/resources/bibliography/bib.xml"));
assertEquals("livro-jose", bibliography.getEntries().get(0).label);
assertEquals("artigo-jose", bibliography.getEntries().get(1).label);
}