@Test
    public void testInvalidSurrogates() throws SAXException {
        safe.ignorableWhitespace("\udb00\ubfff".toCharArray(), 0, 2);
        assertEquals("\ufffd\ubfff", output.toString());
    }
Unit tests for the {@link SafeContentHandler} class.
tika-core/src/test/java/org/apache/tika/sax/SafeContentHandlerTest.java