protected void doTest(String pageName, String xmlunitPageName, String pageElementToTest) throws IOException, SAXException {
HtmlPage page = environment.getPage('/' + pageName + ".jsf");
HtmlElement htmlElement = (HtmlElement) page.getElementById(pageElementToTest);
assertNotNull(htmlElement);
String pageCode = htmlElement.asXml();
checkXmlStructure(pageName, xmlunitPageName, pageCode);
}
protected void checkXmlStructure(String pageName, String xmlunitPageName, String pageCode) throws SAXException, IOException {