@Override
        public int read(byte[] buffer) throws IOException {
            if (buffer.length < 2) {
                return super.read(buffer);
            }
            return super.read(buffer, 0, 2);
        }
An InputStream that only returns two bytes at a time, no matter how many were requested.
common/src/test/java/org/conscrypt/java/security/cert/CertificateFactoryTest.java