### Question:
StringUtil { public static String capitalize(Element element) { return capitalize(element.getSimpleName().toString()); }  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 capitalize_upperCaseLetter_returnsSameString() { assertThat(StringUtil.capitalize("String")).isEqualTo("String"); }
@Test void capitalize_lowerCaseLetter_capitalizesFirstLetter() { assertThat(StringUtil.capitalize("string")).isEqualTo("String"); }
@Test void capitalize_upperCaseSimpleNameElement_returnsSimpleNameAsString() { when(elementMock.getSimpleName().toString()).thenReturn("String"); assertThat(StringUtil.capitalize(elementMock)).isEqualTo("String"); }
@Test void capitalize_lowerCaseSimpleNameElement_capitalizesFirstLetterOfSimpleName() { when(elementMock.getSimpleName().toString()).thenReturn("string"); assertThat(StringUtil.capitalize(elementMock)).isEqualTo("String"); }