}
public void testNullInitCause() {
XSLException ex = new XSLException(null, null);
assertNull(ex.getCause());
try {
ex.initCause(new Exception());
fail("Reinitialized cause over null");
}
catch (IllegalStateException success) {
assertNotNull(success.getMessage());
}
try {
ex.initCause(null);
fail("Reinitialized cause over null");
}
catch (IllegalStateException success) {
assertNotNull(success.getMessage());
}