@Test(groups = "auth")
public void close()
{

  final Authenticator auth = new Authenticator();
  auth.setDnResolver(new SearchDnResolver(new MockConnectionFactory(new ConnectionConfig())));
  auth.setAuthenticationHandler(
    new SimpleBindAuthenticationHandler(new MockConnectionFactory(new ConnectionConfig())));
  auth.setEntryResolver(new SearchEntryResolver(new MockConnectionFactory(new ConnectionConfig())));
  auth.close();
  Assert.assertFalse(
    ((MockConnectionFactory)
      ((SearchDnResolver) auth.getDnResolver()).getConnectionFactory()).isOpen());
  Assert.assertFalse(
    ((MockConnectionFactory)
      ((SimpleBindAuthenticationHandler) auth.getAuthenticationHandler()).getConnectionFactory()).isOpen());
  Assert.assertFalse(
    ((MockConnectionFactory)
      ((SearchEntryResolver) auth.getEntryResolver()).getConnectionFactory()).isOpen());
}