connection = connectionsViewBot.createTestConnection( "ReferralDialogTest", ldapServer.getPort() );
browserViewBot = studioBot.getBrowserView();
// create referral entry
ServerEntry entry = new DefaultServerEntry( ldapServer.getDirectoryService().getRegistries() );
entry.setDn( new LdapDN( "cn=referralDialogTest,ou=system" ) );
entry.add( "objectClass", "top", "referral", "extensibleObject" );
entry.add( "cn", "referralDialogTest" );
entry.add( "ref", "ldap://localhost:" + ldapServer.getPort() + "/ou=users,ou=system" );
ldapServer.getDirectoryService().getAdminSession().add( entry );