for (int i = 0; i < msgs.length; i++) {
eT = new SaslException(msgs[i]);
for (int l = (thUpd.length - 1); l >= 0; l--) {
try {
eT1 = eT.initCause(thUpd[l]);
assertEquals("Incorrect throwable", eT1, eT);
assertEquals("Incorrect cause", eT.getCause(), thUpd[l]);
} catch (IllegalStateException e) {
if (l == (thUpd.length - 1)) {
fail("Unexpected exception " + e);