void () { for (String s : new String[]{"ab\n\0\r\tde", "\\abc\1\2\3\uFFFFdef"}) { String escapedText = XmlStringUtil.escapeIllegalXmlChars(s); assertNull(Verifier.checkCharacterData(escapedText)); assertEquals(s, XmlStringUtil.unescapeIllegalXmlChars(escapedText)); } }