src/main/java/org/fest/assertions/Formatting.java
public static @NotNull String format(@NotNull String format, @NotNull Object... args) {
    Object[] argsAsText = new String[args.length];
    for (int i = 0; i < args.length; i++) {
      argsAsText[i] = toStringOf(args[i]);
    }
    return String.format(format, argsAsText);
  }
public static @NotNull String format(@NotNull String format, @NotNull Object... args) {
    Object[] argsAsText = new String[args.length];
    for (int i = 0; i < args.length; i++) {
      argsAsText[i] = toStringOf(args[i]);
    }
    return String.format(format, argsAsText);
  }
public static @ NotNull String format ( @ NotNull String format , @ NotNull Object ... args ) { Object [ ] argsAsText = new String [ args . length ] ; for ( int i = 0 ; i < args . length ; i ++ ) { argsAsText [ i ] = toStringOf ( args [ i ] ) ; } return String . format ( format , argsAsText ) ; }
Returns a formatted string using the specified format {@code String} and arguments.

@param format a format {@code String}.
@param args   Arguments referenced by the format specifiers in the format {@code String}. If there are more
arguments than format specifiers, the extra arguments are ignored. The number of arguments is
variable and may be zero.
@return A formatted {@code String}.
@throws IllegalFormatException If a format string contains an illegal syntax, a format specifier that is
incompatible with the given arguments, insufficient arguments given the format
{@code String}, or other illegal conditions.
@throws NullPointerException   if the given format is {@code null}.
@since 1.3.1
Returns a formatted string using the specified format { @code String } and arguments .