@Test(expected = MalformedInputException.class)
public void testUtf8DecodeErrorHandlingFailMalformed() throws IOException {

  ResettableInputStream in = initUtf8DecodeTest(DecodeErrorPolicy.FAIL);
  while (in.readChar() != -1) {
    // Do nothing... read the whole file and throw away the bytes.
  }
  fail("Expected MalformedInputException!");
}