int port = 1024;
int port = AvailablePortFinder.getNextAvailable( 1024 );
    protected void setUp() throws Exception    {        super.setUp();        if ( overrides.containsKey( EnvKeys.WKDIR ) )        {            doDelete( new File( ( String ) overrides.get( EnvKeys.WKDIR ) ) );        }        else        {            doDelete( new File( "target" + File.separator + "apacheds" ) );        }//        int port = AvailablePortFinder.getNextAvailable( 1024 );        int port = 1024;        extras.put( EnvKeys.LDAP_PORT, String.valueOf( port ) );        setSysRoot( "uid=admin,ou=system", "secret" );    }