@Test
public void testBadUnicode5() throws Exception {
char[] chars = new char[] {'a', '\ud800'};
final String LINE = new String(chars);
Reader r = new OneCharAtATimeReader(new StringReader(LINE));
ReaderInputStream ris = new ReaderInputStream(r, "UTF-8");
InputStreamReader isr = new InputStreamReader(ris);
Assert.assertEquals(chars[0], isr.read());
try {
isr.read();
Assert.fail("No exception raised");