@Test
public void testLength() {

  final Object[][] testParameters = new Object[][] {{"", 0}, {" ", 1}, {"hello, world", 12}};
  for (final Object[] testParameter : testParameters) {
    int expected = (Integer) testParameter[1];
    CharSequence str = (CharSequence) testParameter[0];
    assertEquals(expected, StringUtils.length(str));
  }
}