@Test
public void getStringArray() throws Exception {

    assertArrayEquals(DataUtil.getStringArray(null, defaultStringArray), defaultStringArray);
    assertArrayEquals(DataUtil.getStringArray(Boolean.TRUE, defaultStringArray), new String[] {"true"});
    assertArrayEquals(DataUtil.getStringArray(Boolean.FALSE, defaultStringArray), new String[] {"false"});
    assertArrayEquals(DataUtil.getStringArray("True", defaultStringArray), new String[] { "True" });
    assertArrayEquals(DataUtil.getStringArray("99", defaultStringArray), new String[] {"99"});
    assertArrayEquals(DataUtil.getStringArray(" 88 ", defaultStringArray), new String[] {"88"});
    assertArrayEquals(DataUtil.getStringArray(new String[] {"DDDDD"}, defaultStringArray), new String[] {"DDDDD"});
    assertArrayEquals(DataUtil.getStringArray(new Object(), defaultStringArray), defaultStringArray);
    assertArrayEquals(DataUtil.getStringArray(888l, defaultStringArray), new String[] {"888"});
    assertArrayEquals(DataUtil.getStringArray('a', defaultStringArray), new String[] {"a"});
    assertArrayEquals(DataUtil.getStringArray(new Object[] {'a', 123} , defaultStringArray), new String[] {"a", "123"});
    assertArrayEquals(DataUtil.getStringArray(new int[] {345, 123} , defaultStringArray), new String[] {"345", "123"});
}