@Test
public void testRepeat() {

  final Object[][] testParameters =
      new Object[][] {{"Hello", 0, ""}, {"Hello", 1, "Hello"}, {"Hello", 2, "HelloHello"}};
  assertEquals("", StringUtils.repeat(null, -1));
  assertEquals("", StringUtils.repeat(null, 0));
  assertEquals("", StringUtils.repeat(null, 1));
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[2];
    String word = (String) testParameter[0];
    int repeat = (Integer) testParameter[1];
    assertEquals(expected, StringUtils.repeat(word, repeat));
  }
}