@Test
public final void testEncodeHeader() throws IOException {

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