OperationalReport extends Report { public OperationalReport(){ } OperationalReport();  OperationalReport(String name, String info, List<Parameter> parameters, ReportGenerator reportGenerator); String getRendering(String format); String getHTMLRendering(); void getDownloadRendering(HttpServletRequest req, HttpServletResponse resp, String fileName, String format); void getDownloadRendering(HttpServletRequest req, HttpServletResponse resp, String fileName, String format, String destinationURL);  }
@Test public final void testOperationalReport() { String name = "Test Report"; String info = "Some info"; List<Parameter> parameters = new ArrayList<Parameter>(); MockReportGenerator repGen = new MockReportGenerator(); repGen.setResultData(reportData); testInstance = new OperationalReport(name, info, parameters, repGen); assertNotNull(repGen); assertEquals(testInstance.getName(), name); assertEquals(testInstance.getInfo(), info); assertEquals(testInstance.getParameters(), parameters); assertEquals(testInstance.getReportGenerator(), repGen); }