@Test
public void testJoinOnObject() {

  final Object[][] testParameters =
      new Object[][] {{new String[] {"Hello", "World"}, "-", "Hello-World"},
          {new String[] {"A", "B", "C"}, ".", "A.B.C"}};
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[2];
    String[] values = (String[]) testParameter[0];
    String token = (String) testParameter[1];
    assertEquals(expected, StringUtils.join(values, token));
  }
}