@Test
public void testHasLength() {

  final Object[][] testParameters =
      new Object[][] {{"", false}, {" ", true}, {"\n", true}, {"hello, world", true}};
  for (final Object[] testParameter : testParameters) {
    boolean expected = (Boolean) testParameter[1];
    CharSequence str = (CharSequence) testParameter[0];
    assertEquals(expected, StringUtils.hasLength(str));
  }
}