* Test for <code>AuthenticationException(String detail, Throwable ex)</code> constructor
* Assertion: constructs AuthenticationException when <code>ex</code> is not null
* <code>detail</code> is not null
*/
public void testAuthenticationException07() {
AuthenticationException tE;
for (int i = 0; i < msgs.length; i++) {
tE = new AuthenticationException(msgs[i], tCause);
String getM = tE.getMessage();
String toS = tCause.toString();
if (msgs[i].length() > 0) {
assertTrue("getMessage() must contain ".concat(msgs[i]), getM
.indexOf(msgs[i]) != -1);
if (!getM.equals(msgs[i])) {
assertTrue("getMessage() should contain ".concat(toS), getM
.indexOf(toS) != -1);
}
}
assertEquals("getCause() must return "
.concat(tCause.toString()), tE.getCause(), tCause);
}
}