@Test
    public void testOneCharacterPerByte() throws IOException {
        try {
            char[] ch = new char[1];
            for (int i = 0; i < MANY_BYTES; i++) {
                stream.read();
                handler.characters(ch, 0, ch.length);
            }
        } catch (SAXException e) {
            fail("Unexpected SAXException");
        }
    }
Tests for the {@link SecureContentHandler} class.
tika-core/src/test/java/org/apache/tika/sax/SecureContentHandlerTest.java