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);
assertEquals("java.lang.Exception", parser.exceptionClassname);
assertTrue("Should have started with [" + expectedStart + "]",
buffer.startsWith(expectedStart));