### Question:
LdapLinkResource extends ResourceValue { public boolean unbind () { if (_ctx == null) { return false; } try { _ctx.close(); } catch (NamingException e) { return false; } return true; } LdapLinkResource(String uri); LdapResultResource search(String baseDN, String filter, List<String> attributes,
                                      int attrsOnly, long sizeLimit, int timeLimit, int deref,
                                      int scope); boolean simpleBind(String dn, String password); boolean unbind();  }### Answer:
@Test public void unbindUnbound () { assertFalse("Unbinding should fail when not already bound", _connection.unbind()); }