writer.writeStartSequence(OP_TYPE_BIND_RESPONSE);
writer.writeInteger(okCode.getIntValue());
writer.writeOctetString(responseDn.toString());
writer.writeOctetString(message.toString());
writer.writeBoolean(true);
writer.writeEndSequence();
ASN1Reader reader = ASN1.getReader(bsb.toByteString());
ProtocolOp protocolOp = LDAPReader.readProtocolOp(reader);
assertTrue(protocolOp instanceof BindResponseProtocolOp);