expectedSerialization = readCategoriesDocumentFromFile();
} catch (IOException e) {
fail("Failed to read " + ATOM_CATEGORIES_DUCUMENT);
}
DiffIgnoreUpdateWithAttributeQualifier diff;
try {
diff = new DiffIgnoreUpdateWithAttributeQualifier(expectedSerialization, content);
} catch (Exception e) {
fail("Failed to perform diff");
throw e;
}
assertTrue("Expected atom feed documents to be similar" + " "
+ diff.toString()
+ "\nexpected:\n"
+ expectedSerialization
+ "\nresult:\n"
+ content, diff.similar());
}