@Test
public final void testEncodeFooter() throws IOException {

    HtmlPage page = environment.getPage("/dataGridTest.jsf");
    HtmlElement dataGrid = page.getElementById("dataGrid");
    HtmlElement td = dataGrid.getFirstByXPath("tfoot[@class='rf-dg-tfoot']/tr[@class='rf-dg-f']/td[@class='rf-dg-f-c']");
    assertEquals("1", td.getAttribute("colspan"));
    assertEquals("footerFacet", td.getElementById("dataGrid:footerFacet").getTextContent());
}