### Question:
HtmlFormatter implements Formatter { public String getResultData(List<TestResult> listResult) { StringBuffer sb = new StringBuffer(); if (listResult != null && listResult.size() > 0) { for (int i = 0; i < listResult.size(); i++) { TestResult result = listResult.get(i); sb.append(getStringResult(result)).append("\n"); } } return sb.toString(); }  String getFileName(String scriptName); String getResultData(List<TestResult> listResult); String getHeader(); String getStringResult(final TestResult result); String getSummaryHeader(); String getSummaryData(TestSummary summary); String getSummaryFooter(); String getFooter(); String getSuiteLogFileName(); String getStartScript(); String getStopScript();  }### Answer:
@Test public void testGetResultDataForEmptyList() { assertEquals("", formatter.getResultData(null)); }