@Test
public void testConvertToStringArray() throws Exception {

    assertNull(StringArrayConverter.convertToStringArray(null));
    assertNull(StringArrayConverter.convertToStringArray(""));
    String[] array = StringArrayConverter.convertToStringArray("foo");
    assertEquals(1, array.length);
    assertEquals("foo", array[0]);
    array = StringArrayConverter.convertToStringArray("foo,bar");
    assertEquals(2, array.length);
    assertEquals("foo", array[0]);
    assertEquals("bar", array[1]);
    array = StringArrayConverter.convertToStringArray("foo,bar,baz");
    assertEquals(3, array.length);
    assertEquals("foo", array[0]);
    assertEquals("bar", array[1]);
    assertEquals("baz", array[2]);
}