### Question:
Footer2004 implements IFooter { public void addEle(IElement e) { this.txt.append("\n" + e.getContent()); }  void addEle(IElement e); void addEle(String str); String getContent(); void showPageNumber(boolean value);  }### Answer:
@Test public void testAddEle(){ Footer2004 ft = new Footer2004(); ft.addEle(Paragraph.with("p1")); assertEquals(2, TestUtils.regexCount(ft.getContent(), "<*w:ftr")); assertEquals(1, TestUtils.regexCount(ft.getContent(), "<w:t>p1</w:t>")); assertEquals(6, TestUtils.regexCount(ft.getContent(), "<w:rStyle w:val=\"PageNumber\"/>")); }