public void testEndSection() throws Exception { ReportFormat rf = new ReportFormat(); String endSection = "end"; rf.setDocumentEndSection(endSection); ReportOutput result = runReportOnSampleData(rf); assertEquals("didn't output end section?", endSection, result.getDocumentEnd()); }