/**
* Test for <code>DigestException(Throwable)</code> constructor Assertion:
* constructs DigestException when <code>cause</code> is not null
*/
public void testDigestException05() {
DigestException tE = new DigestException(tCause);
if (tE.getMessage() != null) {
String toS = tCause.toString();
String getM = tE.getMessage();
assertTrue("getMessage() should contain ".concat(toS), (getM
.indexOf(toS) != -1));
}
assertNotNull("getCause() must not return null", tE.getCause());
assertEquals("getCause() must return ".concat(tCause.toString()), tE
.getCause(), tCause);
}