Strings { public static String format(String pattern, Object... params) { return MessageFormatter.arrayFormat(pattern, params).getMessage(); }  static byte[] bytes(String text); static String format(String pattern, Object... params); static int compare(@Nullable String text1, @Nullable String text2); static boolean isBlank(@Nullable String text); static boolean equals(@Nullable String text1, @Nullable String text2); @Nullable static String truncate(@Nullable String text, int maxLength); @Nullable static String strip(@Nullable String text); static boolean startsWith(String text, char prefix); static String[] split(String text, char delimiter);  }
@Test void format() { assertThat(Strings.format("{}, {}, {}", 1, 2, 3, 4)).isEqualTo("1, 2, 3"); assertThat(Strings.format("{}")).isEqualTo("{}"); assertThat(Strings.format("{}", (Object[]) null)).isEqualTo("{}"); }