StudioProgressMonitor monitor = getProgressMonitor();
ConnectionParameter connectionParameter = new ConnectionParameter( null, "localhost", ldapServer.getIpPort(),
EncryptionMethod.NONE, AuthenticationMethod.SIMPLE, "uid=admin,ou=system", "secret", null, true, null );
Connection connection = new Connection( connectionParameter );
JNDIConnectionWrapper connectionWrapper = connection.getJNDIConnectionWrapper();
IAuthHandler authHandler = getAuthHandler();
ConnectionCorePlugin.getDefault().setAuthHandler( authHandler );
assertFalse( connectionWrapper.isConnected() );
connectionWrapper.connect( monitor );