@Test
public void testConvertToStringArray() throws Exception {

    assertThat(convertToStringArray(null), Is.<Object>is(new String[0]));
    assertThat(convertToStringArray("test"), Is.<Object>is(new String[]{"test"}));
    assertThat(convertToStringArray(new String[]{"test"}), Is.<Object>is(new String[]{"test"}));
    assertThat(convertToStringArray(singletonList("test")), Is.<Object>is(new String[]{"test"}));
    assertThat(convertToStringArray(new Vector<>(singletonList("test"))), Is.<Object>is(new String[]{"test"}));
    assertThat(convertToStringArray(1), Is.<Object>is(new String[]{"1"}));
}