@Test
public void testRenderAuthorsByFileReport() throws Exception {
HtmlReportBuilder reportBuilder = new HtmlReportBuilder();
reportBuilder.setExtractedData(new ExtractedData());
VersionedFile file = new VersionedFile("/trunk/dir1/file1");
Author author1 = new Author("sergio");
Author author2 = new Author("ivan");
file.setInitialLoc(author1, 33);
file.setInitialLoc(author2, 22);
file.setCurrentLoc(author1, 47);
file.setCurrentLoc(author2, 98);
buildChangeSet(1, author1, file, new LineCount(10, 0));
buildChangeSet(2, author2, file, new LineCount(100, 5));
buildChangeSet(3, author1, file, new LineCount(10, 25));
String authorsByFileReport = reportBuilder
.renderAuthorsByFileReport(file);