String output = suiteOutputAsString();
Document document = XmlUtil.newDocument(output);
Element suiteResultsElement = document.getDocumentElement();
assertEquals("suiteResults", suiteResultsElement.getNodeName());
assertEquals(new FitNesseVersion().toString(), XmlUtil.getTextValue(suiteResultsElement, "FitNesseVersion"));
assertEquals("SuitePage", XmlUtil.getTextValue(suiteResultsElement, "rootPath"));
NodeList xmlPageReferences = suiteResultsElement.getElementsByTagName("pageHistoryReference");
assertEquals(1, xmlPageReferences.getLength());
for (int referenceIndex = 0; referenceIndex < xmlPageReferences.getLength(); referenceIndex++) {