### Question:
BindResponseProtocolOp extends ProtocolOp { @Override public void toString(StringBuilder buffer) { buffer.append("BindResponse(resultCode="); buffer.append(resultCode); if (errorMessage != null && errorMessage.length() > 0) { buffer.append(", errorMessage="); buffer.append(errorMessage); } if (matchedDN != null) { buffer.append(", matchedDN="); buffer.append(matchedDN); } if (referralURLs != null && !referralURLs.isEmpty()) { buffer.append(", referralURLs={"); Utils.joinAsString(buffer, ", ", referralURLs); buffer.append("}"); } if (serverSASLCredentials != null) { buffer.append(", serverSASLCredentials="); buffer.append(serverSASLCredentials); } buffer.append(")"); } BindResponseProtocolOp(int resultCode);  BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage);  BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage,
                                DN matchedDN, List<String> referralURLs);  BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage,
                                DN matchedDN, List<String> referralURLs,
                                ByteString serverSASLCredentials); int getResultCode(); LocalizableMessage getErrorMessage(); DN getMatchedDN(); List<String> getReferralURLs(); ByteString getServerSASLCredentials(); @Override byte getType(); @Override String getProtocolOpName(); @Override void write(ASN1Writer stream); @Override void toString(StringBuilder buffer); @Override void toString(StringBuilder buffer, int indent);  }### Answer:
@Test public void testBindRequestToString() throws Exception { List<String> referralURLs = new ArrayList<>(); referralURLs.add(url); DN responseDn = DN.valueOf(dn); ByteString serverSASLCredentials = ByteString.valueOfUtf8(saslCreds); BindResponseProtocolOp r = new BindResponseProtocolOp(okCode.intValue(), message, responseDn, referralURLs, serverSASLCredentials); toString(r); }