When running on JDK 16+, we are not able to spy() on JDK types. To address this, this commit stops using Mockito to spy on JDK I/O streams (such as ByteArrayInputStream and ByteArrayOutputStream).
When running on JDK 16+, we are not able to spy() on JDK types. To address this, this commit stops using Mockito to spy on JDK I/O streams (such as ByteArrayInputStream and ByteArrayOutputStream).