@Test
void testSplit() {

    String byteRangeSet = "500-";
    String[] byteRangeSets = StringUtils.split(byteRangeSet, ',');
    System.out.println(Arrays.toString(byteRangeSets));
    assertEquals(byteRangeSets.length, 1);
    byteRangeSet = "500-,";
    byteRangeSets = StringUtils.split(byteRangeSet, ',');
    System.out.println(Arrays.toString(byteRangeSets));
    assertEquals(byteRangeSets.length, 1);
    byteRangeSet = ",500-,";
    byteRangeSets = StringUtils.split(byteRangeSet, ',');
    System.out.println(Arrays.toString(byteRangeSets));
    assertEquals(byteRangeSets.length, 1);
    byteRangeSet = ",500-,";
    byteRangeSets = StringUtils.split(byteRangeSet, ",");
    System.out.println(Arrays.toString(byteRangeSets));
    assertEquals(byteRangeSets.length, 1);
    byteRangeSet = ",500-";
    byteRangeSets = StringUtils.split(byteRangeSet, ',');
    System.out.println(Arrays.toString(byteRangeSets));
    assertEquals(byteRangeSets.length, 1);
    byteRangeSet = "500-700,601-999,";
    byteRangeSets = StringUtils.split(byteRangeSet, ',');
    assertEquals(byteRangeSets.length, 2);
    byteRangeSet = "500-700,,601-999,";
    byteRangeSets = StringUtils.split(byteRangeSet, ',');
    assertEquals(byteRangeSets.length, 2);
    String tmp = "hello#$world#%test#$eee";
    String[] tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 3);
    tmp = "hello#$";
    tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 1);
    tmp = "#$hello#$";
    tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 1);
    tmp = "#$hello";
    tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 1);
    tmp = "#$hello#$world#$";
    tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 2);
    tmp = "#$hello#$#$world#$";
    tmps = StringUtils.splitByWholeSeparator(tmp, "#$");
    System.out.println(Arrays.toString(tmps));
    assertEquals(tmps.length, 2);
}