### Question:
StringUtil { public static String repeat(int n, String toRepeat, String delimiter) { return Stream.iterate(0, i -> i + 1) .limit(n) .map(i -> toRepeat) .collect(joining(delimiter)); }  static String capitalize(Element element); static String capitalize(String str); static String uncapitalize(String str); static String toClassCase(CharSequence str); static String repeat(int n, String toRepeat, String delimiter);  }### Answer:
@Test void repeat_zeroRepeats_returnsEmptyString() { assertThat(StringUtil.repeat(0, "toRepeat", "delimiter")).isEmpty(); }
@Test void repeat_oneRepeat_returnsStringOnly() { assertThat(StringUtil.repeat(1, "string", "delimiter")).isEqualTo("string"); }
@Test void repeat_multipleRepeats_returnsStringsSpacedByDelimiter() { assertThat(StringUtil.repeat(3, "string", ", ")).isEqualTo("string, string, string"); }