@Override
        public int read() throws IOException {
            int nextByte = mStream.read();
            mCount++;
            return nextByte;
        }
Proxy that counts the number of bytes read from an InputStream.
common/src/test/java/org/conscrypt/java/security/cert/CertificateFactoryTest.java