String expectedEnd = "]]></stacktrace>";
Exception e = new Exception("test exception");
WebTestResult initialResult = new WebTestResult(e);
WebTestResultParser parser = new WebTestResultParser();
String buffer = parser.readRootElement(initialResult.toXml());
buffer = parser.readExceptionClassname(buffer);
buffer = parser.readExceptionMessage(buffer);
assertEquals("test exception", parser.exceptionMessage);
assertTrue("Should have started with [" + expectedStart + "]",