super.tearDown();
}
public final void testThrowableToElement() throws ParserConfigurationException, FactoryConfigurationError {
IThrowableToElement throwableToElement
= getThrowableToElementInstance();
Throwable supportedThrowable
= supportedThrowable();
Class supportedThrowableClass = supportedThrowable.getClass();
assertTrue(throwableToElement.supports(supportedThrowableClass));
Document dom = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
Element e = throwableToElement.throwableToElement(supportedThrowable, dom);
assertEquals(dom, e.getOwnerDocument());
assertEquals("throwable", e.getNodeName());
assertEquals(supportedThrowableClass.getName(),
e.getAttribute("renderedAs"));
assertEquals(supportedThrowableClass.getName(),