Adapt TestResettableInputStreamReader to Java 8.