void () { final String p = AccessibleContextUtil.PUNCTUATION_CHARACTER; final String s = AccessibleContextUtil.PUNCTUATION_SEPARATOR; Assert.assertEquals("", AccessibleContextUtil.replaceLineSeparatorsWithPunctuation(null)); Assert.assertEquals("", AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("")); Assert.assertEquals("", AccessibleContextUtil.replaceLineSeparatorsWithPunctuation(" ")); Assert.assertEquals("a" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation(" a ")); Assert.assertEquals("a" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("a")); Assert.assertEquals("a" + p + s + "b" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("a\nb")); Assert.assertEquals("a" + p + s + "b" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("a.\nb")); Assert.assertEquals("a" + p + s + "b" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("a.\nb.")); Assert.assertEquals("a" + p + s + "b" + p + s + "c" + p, AccessibleContextUtil.replaceLineSeparatorsWithPunctuation("a\nb\n\nc")); }