*/
public void testBindAndUnbindHandleSynchronousAndAsynchronous()
throws MessageException, WrongSessionStateException,
TimeoutException, IOException, PDUException {
// Verify that binding using an asynchronous factory is fine.
Session session = new Session(new TCPIPConnection(ADDRESS, PORT));
sessionFactory.bind(session);
sessionFactory.unbind(session);
// Verify that binding using a synchronous factory is fine.
sessionFactory = new PoolableSessionFactory(
ADDRESS, PORT, USERNAME, PASSWORD, SYNC_BINDTYPE);
session = new Session(new TCPIPConnection(ADDRESS, PORT));
sessionFactory.bind(session);
sessionFactory.unbind(session);
}