### Question:
HtmlFormatter implements Formatter { public String getHeader() { return new StringBuffer("<head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n<style>\n").append( new String(Utils.readFileAsString(Configuration.getPlaybackLogCSSFileName(true)))).append( new String(Utils.readFileAsString(Configuration.getConsolidatedLogCSSFileName(true)))).append( "</style></head>\n").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 testGetHeader() { String expected = new StringBuffer("<head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n<style>\n").append( new String(Utils.readFileAsString(Configuration .getPlaybackLogCSSFileName(true)))).append( new String(Utils.readFileAsString(Configuration .getConsolidatedLogCSSFileName(true)))).append( "</style></head>\n").toString(); assertEquals(expected, formatter.getHeader()); }