@Test
public void splitTest() {

    String normalText = "Try to make the code better";
    String[] expected = new String[] { "Try", "to", "make", "the", "code", "better" };
    Assert.assertArrayEquals(expected, StringUtil.split(normalText, " "));
    // case in http://errorprone.info/bugpattern/StringSplitter
    expected = new String[] { "" };
    Assert.assertArrayEquals(expected, StringUtil.split("", ":"));
    expected = new String[] { "", "" };
    Assert.assertArrayEquals(expected, StringUtil.split(":", ":"));
    expected = new String[] { "1", "2" };
    Assert.assertArrayEquals(expected, StringUtil.split("1<|>2", "<|>"));
}