new byte[] { -32, -96 }), Charset.forName("UTF-8"));
assertEquals("read() return incorrect value", 65533, isr2.read());
// if the decoder is passed in, keep its status intacted
CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder();
decoder.onMalformedInput(CodingErrorAction.REPORT);
InputStreamReader isr3 = new InputStreamReader(new ByteArrayInputStream(
new byte[] { -32, -96 }), decoder);
try{
isr3.read();
fail("Should throw MalformedInputException");