server.disconnectNotify();
Thread.sleep(500);
assertNull(listener.exceptionEvent);
assertNotNull(listener.unsolicatedEvent);
assertTrue(listener.unsolicatedEvent.getSource() instanceof LdapContext);
UnsolicitedNotification notification = listener.unsolicatedEvent
.getNotification();
assertNotNull(notification);
assertEquals(DisconnectResponse.oid, notification.getID());
assertNull(notification.getControls());
assertNull(notification.getException());
assertNull(notification.getReferrals());
assertNull(notification.getEncodedValue());
}