src/main/java/org/fest/assertions/StringAssert.java
public @NotNull StringAssert endsWith(String expected) {
    isNotNull();
    if (actual.endsWith(expected)) {
      return this;
    }
    failIfCustomMessageIsSet();
    throw failure(format("<%s> should end with:<%s>", actual, expected));
  }
public @NotNull StringAssert endsWith(String expected) {
    isNotNull();
    if (actual.endsWith(expected)) {
      return this;
    }
    failIfCustomMessageIsSet();
    throw failure(format("<%s> should end with:<%s>", actual, expected));
  }
Verifies that the actual {@code String} ends with the given one.

@param expected the given {@code String} expected to be at the end of the actual one.
@return this assertion object.
@throws AssertionError if the actual {@code String} is {@code null}.
@throws AssertionError if the actual {@code String} does not end with the given one.