src/main/java/org/fest/assertions/ComparableAssert.java
public final @NotNull S isEqualByComparingTo(T expected) {
    isNotNull();
    if (actual.compareTo(expected) == 0) {
      return myself();
    }
    failIfCustomMessageIsSet();
    throw comparisonFailed(rawDescription(), actual, expected);
  }
public final @NotNull S isEqualByComparingTo(T expected) {
    isNotNull();
    if (actual.compareTo(expected) == 0) {
      return myself();
    }
    failIfCustomMessageIsSet();
    throw comparisonFailed(rawDescription(), actual, expected);
  }
Verifies that the actual {@link Comparable} is equal to the given one.

@param expected the given {@code Comparable} to compare the actual {@code Comparable} to.
@return this assertion object.
@throws AssertionError if the actual {@code Comparable} is {@code null}.
@throws AssertionError if the actual {@code Comparable} is not equal to the given one.