boolean (Class<?> aClass) { if (aClass == null) return false; final String throwableClassName = aClass.getName(); if (throwableClassName.equals("junit.framework.ComparisonFailure") || throwableClassName.equals("org.junit.ComparisonFailure")) { return true; } return isComparisonFailure(aClass.getSuperclass()); }