@Test
public void testManyCharactersPerByte() throws IOException {

    try {
        char[] ch = new char[1000];
        for (int i = 0; i < MANY_BYTES; i++) {
            stream.read();
            handler.characters(ch, 0, ch.length);
        }
        fail("Expected SAXException not thrown");
    } catch (SAXException e) {
        // expected
    }
}