### Question:
BasicReportGenerator { public void exportFile(String filename) throws JRException { JRExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, filledReportPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, filename); exporter.setParameter(JRExporterParameter.CHARACTER_ENCODING, "UTF-8"); exporter.exportReport(); } BasicReportGenerator(FileEntry e, String templateFilename, String reportBuilderLocation, String reportName,
            String hostURL, TimeZone tz); void exportFile(String filename); void exportStream(String filename, OutputStream out);  }### Answer:
@Test public void testBuildPDFReport() throws JRException { URL testDir = getClass().getResource("/"); File test_results_dir = new File(testDir.getPath() + "/test_results/"); if (!test_results_dir.exists() || !test_results_dir.isDirectory()) { assertTrue(test_results_dir.mkdir()); } LOGGER.info("OutDir: {}", test_results_dir.getPath()); String filename = testDir.getPath() + "/test_results/report" + System.currentTimeMillis() + ".pdf"; assertNotNull(testEntry.getCarImages().get(0).getFilepath()); assertTrue(Files.exists(testEntry.getCarImages().get(0).getFilepath())); assertTrue(Files.isRegularFile(testEntry.getCarImages().get(0).getFilepath())); TimeZone tz = TimeZone.getTimeZone("CET"); BasicReportGenerator brg = new BasicReportGenerator(testEntry, "/reports/speed_report.jasper", "Myjava", "TestReport", "https: brg.exportFile(filename); }