protected TestReport handleException(Exception e) {
if (!e.getClass().getName().equals(expectedExceptionClass)) {
TestReport report = reportError(ERROR_UNEXPECTED_EXCEPTION);
report.addDescriptionEntry(ENTRY_KEY_UNEXPECTED_EXCEPTION,
e.getClass().getName());
report.addDescriptionEntry(ENTRY_KEY_EXPECTED_EXCEPTION,
expectedExceptionClass);
return report;
} else {
if (!ERROR_CODE_NO_CHECK.equals(expectedErrorCode)
&& e instanceof BridgeException) {