code: private static AssertionError createComparisonFailure(final String reason, final String controlString,
              final String testString) {
          try {
              if (comparisonFailureConstructor == null) {
                  final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
                  Class<?> comparisonFailureClass = classLoader.loadClass("org.junit.ComparisonFailure");
                  comparisonFailureConstructor = comparisonFailureClass.getConstructor(String.class, String.class,
                      String.class);
              }
              return (AssertionError) comparisonFailureConstructor.newInstance(reason, controlString, testString);
          } catch (Exception e) {
              // ClassNotFoundException, NoSuchMethodException, InstantiationException,
              // IllegalAccessException, InvocationTargetException
              LOGGER.info("Either add junit to your classpath or do not call '.throwComparisonFailure()'. " + e);
          }
  
          return null;
      }
docs: Calls the Constructor {@link org.junit.ComparisonFailure#ComparisonFailure(String, String, String)} with
  reflections and return <code>null</code> if the {@link org.junit.ComparisonFailure} class is not available.