@Test
public void testSplitUsingEscapeAndDelimChar() throws Exception {

  List<String> list =
      TimelineReaderUtils.split("*!cluster!*!b**o***!xer!oozie**", '!', '*');
  String[] arr = new String[list.size()];
  arr = list.toArray(arr);
  assertArrayEquals(new String[] {"!cluster", "!b*o*!xer", "oozie*"}, arr);
  list = TimelineReaderUtils.split("*!cluster!*!b**o***!xer!!", '!', '*');
  arr = new String[list.size()];
  arr = list.toArray(arr);
  assertArrayEquals(new String[] {"!cluster", "!b*o*!xer", "", ""}, arr);
}