@Test
public void testSplitAbbreviate() {

  assertEquals(SHORT_TEXT, XsltHelper.split(SHORT_TEXT, 13, 1, true));
  assertEquals("A short...", XsltHelper.split(SHORT_TEXT, 12, 1, true));
  assertEquals("A short...", XsltHelper.split(SHORT_TEXT, 11, 1, true));
  assertEquals("A short...", XsltHelper.split(SHORT_TEXT, 10, 1, true));
  assertEquals("A shor...", XsltHelper.split(SHORT_TEXT, 9, 1, true));
  assertEquals("A sho...", XsltHelper.split(SHORT_TEXT, 8, 1, true));
  assertEquals("A sh...", XsltHelper.split(SHORT_TEXT, 7, 1, true));
  assertEquals("A...", XsltHelper.split(SHORT_TEXT, 6, 1, true));
  assertEquals("A...", XsltHelper.split(SHORT_TEXT, 5, 1, true));
  assertEquals("A...", XsltHelper.split(SHORT_TEXT, 4, 1, true));
  assertEquals("A", XsltHelper.split(SHORT_TEXT, 3, 1, true));
  assertEquals("A", XsltHelper.split(SHORT_TEXT, 2, 1, true));
  assertEquals("A", XsltHelper.split(SHORT_TEXT, 1, 1, true));
  assertEquals(SHORT_TEXT, XsltHelper.split(SHORT_TEXT, 0, 1, true));
}