bsb.appendBERLength(encodedElements.length + 2);
bsb.append(ASN1Constants.UNIVERSAL_OCTET_STRING_TYPE);
bsb.appendBERLength(encodedElements.length);
bsb.append(encodedElements);
ASN1Reader reader = getReader(bsb.toByteArray(), 0);
assertEquals(reader.peekLength(), encodedElements.length + 2);
reader.readStartSequence();
assertEquals(reader.peekType(), ASN1Constants.UNIVERSAL_OCTET_STRING_TYPE);
assertEquals(reader.peekLength(), encodedElements.length);
reader.readOctetString().equals(ByteString.wrap(encodedElements));