### Question:
Body2004 implements IBody { public String getContent() { StringBuilder res = new StringBuilder(); res.append("\n<w:body>"); res.append(txt.toString()); String header = this.getHeader().getContent(); String footer = this.getFooter().getContent(); if (!"".equals(header) || !"".equals(footer)){ String header_footer_top = "<w:sectPr wsp:rsidR=\"00DB1FE5\" wsp:rsidSect=\"00471A86\">"; String header_footer_botton = "</w:sectPr>"; res.append("\n" + header_footer_top); res.append(header); res.append(footer); if (this.getHeader().getHideHeaderAndFooterFirstPage()){ res.append(this.getHeader().getHideHeaderAndFooterFirstPageXml()); } res.append("\n" + header_footer_botton); } res.append("\n</w:body>"); return res.toString(); }  void addEle(IElement e); void addEle(String str); String getContent(); IHeader getHeader(); IFooter getFooter();  }### Answer:
@Test public void sanityTest(){ Body2004 bd = new Body2004(); assertEquals(2, TestUtils.regexCount(bd.getContent(), "<*w:body>")); }