@Test
public void testSplitWithCommaOrSemicolon() throws Exception {

    String[] s = StringUtils.splitWithCommaOrSemicolon(null);
    Assert.assertTrue(CommonUtils.isEmpty(s));
    s = StringUtils.splitWithCommaOrSemicolon("");
    Assert.assertTrue(CommonUtils.isEmpty(s));
    s = StringUtils.splitWithCommaOrSemicolon("1");
    Assert.assertNotNull(s);
    Assert.assertEquals(s.length, 1);
    s = StringUtils.splitWithCommaOrSemicolon("1,");
    Assert.assertNotNull(s);
    Assert.assertEquals(s.length, 1);
    s = StringUtils.splitWithCommaOrSemicolon(" 1,");
    Assert.assertNotNull(s);
    Assert.assertEquals(s.length, 1);
    s = StringUtils.splitWithCommaOrSemicolon(" 1,2");
    Assert.assertNotNull(s);
    Assert.assertEquals(s.length, 2);
    s = StringUtils.splitWithCommaOrSemicolon(" 1;2");
    Assert.assertNotNull(s);
    Assert.assertEquals(s.length, 2);
}