xstream.alias("bug", Bug.class);
InputStream stream = BugsDifferencerTest.class.getResourceAsStream("issue-6669-1.xml");
FileAnnotation[] current;
try {
current = (FileAnnotation[])xstream.fromXML(stream);
assertEquals("Wrong number of bugs", 2, current.length);
}
finally {
IOUtils.closeQuietly(stream);
}