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="));