}
public void testStandardReport() throws Exception {
final String elementsPath = Resources.getResourceDirectory("elements/Source.java");
final MockLicenseMatcher mockLicenseMatcher = new MockLicenseMatcher();
DirectoryWalker directory = new DirectoryWalker(new File(elementsPath), IGNORE_EMPTY);
RatReport report = XmlReportFactory.createStandardReport(writer, mockLicenseMatcher);
report.startReport();
report(directory, report);
report.endReport();
writer.closeDocument();