@Override
        public int read(byte[] buffer, int offset, int len) throws IOException {
            if (len < 2) {
                return super.read(buffer, offset, len);
            }
            return super.read(buffer, offset, 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