@Test
public void testConvertToString() throws Exception {

    assertEquals(null, StringArrayConverter.convertToString(null));
    assertEquals(null, StringArrayConverter.convertToString(new String[]{}));
    assertEquals("", StringArrayConverter.convertToString(new String[]{""}));
    assertEquals("foo", StringArrayConverter.convertToString(new String[]{"foo"}));
    assertEquals("foo,bar", StringArrayConverter.convertToString(new String[]{"foo", "bar"}));
    assertEquals("foo,bar,baz", StringArrayConverter.convertToString(new String[]{"foo", "bar", "baz"}));
}