This is desired level of unit testing, but use XmlUnit to assert against the dates and number of <tr> rows, vs. asserting on entire exact string.