/*
* Creating new instance of
* {@link WrongMessageDigestException}
*/
WrongMessageDigestException e = new
WrongMessageDigestException(originalMsg);
logger.log(Level.FINE, "\nException: " + e);
/*
* Getting the detailed message string of the
* {@link WrongMessageDigestException}
*/
gotMsg = e.getMessage();
/* Comparing the messages */
if (!originalMsg.equals(gotMsg)) {
throw new TestException(
"The detailed message of this " + "WrongMessageDigestException object \""