Socket s = new Socket("127.0.0.1", TestCaseUtils.getServerLdapPort());
LDAPReader reader = new LDAPReader(s);
LDAPWriter writer = new LDAPWriter(s);
BindRequestProtocolOp bindRequest =
new BindRequestProtocolOp(ByteString.empty(), "EXTERNAL", null);
LDAPMessage message = new LDAPMessage(1, bindRequest);
writer.writeMessage(message);
message = reader.readMessage();
BindResponseProtocolOp bindResponse = message.getBindResponseProtocolOp();