@Test
    public void testEmptyInput() throws SAXException {
        safe.characters(new char[0], 0, 0);
        safe.ignorableWhitespace(new char[0], 0, 0);
        assertEquals("", output.toString());
    }
Unit tests for the {@link SafeContentHandler} class.
tika-core/src/test/java/org/apache/tika/sax/SafeContentHandlerTest.java