final Exception exception = new Exception(exceptionMsg);
final String logMsg = "something's gone wrong";
final LogRecord record = LogTestUtil
.createSevereRecordMsgWithException(logMsg, exception,
getClass(), thisMethodsName);
new ConsoleHandlerNoTime().publish(record);
final String errMsg = errLog.getLog();
final boolean containsExceptionMsg = errMsg.contains(exceptionMsg);
assertTrue(
"The lob message should be printed to the standard error stream",
containsExceptionMsg);