
The implementation of these methods is changed in a follow-up CL, and these tests help to ensure nothing breaks. This doesn't include tests for `toByteArray(InputStream)` or `toByteArray(int)` because these implementations are fully replaced by Guava equivalents in a follow-up CL. PiperOrigin-RevId: 613581845