@Test
public void testSplitOnList() {

  final Object[][] testParameters =
      new Object[][] {{"2018-06-12", "-", Arrays.asList("2018", "06", "12")},
          {"2019.07.14", ".", Arrays.asList("2019", "07", "14")},
          {"2020/08/16", "/", Arrays.asList("2020", "08", "16")}};
  assertNull(StringUtils.split(null, null));
  assertNull(StringUtils.split("2021_09_18", null));
  assertNull(StringUtils.split(null, "_"));
  for (final Object[] testParameter : testParameters) {
    @SuppressWarnings("unchecked")
    List<String> expected = (List<String>) testParameter[2];
    String string = (String) testParameter[0];
    String delimiter = (String) testParameter[1];
    for (int i = 0; i < StringUtils.split(string, delimiter).size(); ++i) {
      assertEquals(expected.get(i), StringUtils.split(string, delimiter).get(i));
    }
  }
}