final MockLicenseMatcher mockLicenseMatcher = new MockLicenseMatcher();
DirectoryWalker directory = new DirectoryWalker(new File(elementsPath), IGNORE_EMPTY);
final ClaimStatistic statistic = new ClaimStatistic();
final ReportConfiguration configuration = new ReportConfiguration();
configuration.setHeaderMatcher(mockLicenseMatcher);
RatReport report = XmlReportFactory.createStandardReport(writer, statistic, configuration);
report.startReport();
report(directory, report);
report.endReport();
writer.closeDocument();
final String output = out.toString();
assertTrue("Preamble and document element are OK",
output.startsWith("<?xml version='1.0'?>" +
"<rat-report timestamp="));