boolean (Class throwableClass) { if (throwableClass == null) return false; final String throwableClassName = throwableClass.getName(); if (throwableClassName.equals(ASSERTION_CLASS_NAME) || throwableClassName.equals(ASSERTION_FAILED_CLASS_NAME) || throwableClassName.equals(OPENTEST4J_ASSERTION)) { return true; } return isAssertionError(throwableClass.getSuperclass()); }