### Question:
JUnitFormatter implements Formatter { public String getHeader() { return "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; }  String getFileName(String scriptName); String getFooter(); String getSuiteLogFileName(); String getHeader(); String getResultData(List<TestResult> listResult); String getStartScript(); String getStopScript(); String getSummaryData(TestSummary summary); String getStringResult(final TestResult result); String getSummaryFooter(); String getSummaryHeader();  }### Answer:
@Test public void testGetHeader() { String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; assertEquals(expected, formatter.getHeader()); }