// Make sure that the default behavior is to not include the error message.
InternalClientConnection conn =
new InternalClientConnection(new AuthenticationInfo());
BindOperation bindOperation =
conn.processSimpleBind(ByteString.valueOf("cn=Directory Manager"),
ByteString.valueOf("wrongpassword"));
assertEquals(bindOperation.getResultCode(), ResultCode.INVALID_CREDENTIALS);
assertTrue(((bindOperation.getErrorMessage() == null) ||
(bindOperation.getErrorMessage().length() == 0)),
bindOperation.getErrorMessage().toString());