### Question:
Report { public TestSummary summarizeResults(String logFileNameBase) { TestSummary summary = new TestSummary(); boolean fail = false; summary.setScriptName(scriptName); summary.setSteps(listResult.size()); summary.setLogFileName(logFileNameBase); if (listResult.size() == 0) fail = true; else { for (Iterator<TestResult> iter = listResult.iterator(); iter.hasNext(); ) { TestResult result = (TestResult) iter.next(); if (ResultType.FAILURE.equals(result.type)) { summary.incrementFailures(); fail = true; } else if (ResultType.ERROR.equals(result.type)) { summary.incrementErrors(); fail = true; } else if (ResultType.SUCCESS.equals(result.type)) { summary.incrementSuccesses(); } } } summary.setTimeTaken(getTimeTaken()); summary.setFail(fail); return summary; } Report(String scriptName, List<SahiReporter> listReporter);  Report(String scriptName);  Report(String scriptName, final SahiReporter reporter); String getScriptName(); void setScriptName(String scriptName); List<SahiReporter> getListReporter(); void setListReporter(List<SahiReporter> listReporter); void addReporter(SahiReporter reporter); List<TestResult> getListResult(); void addResult(final String message, final String type, final String debugInfo,
                        final String failureMsg); void addResult(final String message, final ResultType type, final String debugInfo,
                        final String failureMsg); TestSummary summarizeResults(String logFileNameBase); TestSummary getTestSummary(String logFileNameBase); void generateTestReport(String logFileTS); void stopTimer(); void startTimer(); long getTimeTaken(); long getStartTime();  }### Answer:
@Test public void testSummarizeResultsForEmptyList() { TestSummary summary = report.summarizeResults(""); assertEquals(0, summary.getSteps()); }