EveLdapContext ctx = ( EveLdapContext ) setSysRoot( anonymous );
InitialLdapContext ctx = ( InitialLdapContext ) setSysRoot( anonymous );
    public void test4BuildDbNoPassNoPrincAuthNone() throws Exception    {        // clean out the database        tearDown();        doDelete( new File( "target" + File.separator + "eve" ) );        Hashtable env = new Hashtable();        env.put( Context.SECURITY_AUTHENTICATION, "none" );        try        {            setSysRoot( env );            fail( "should not get here due to exception" );        }        catch( LdapConfigurationException e )        {        }        catch( LdapNoPermissionException e )        {        }        // ok this should start up the system now as admin        Hashtable anonymous = new Hashtable();        anonymous.put( EveContextFactory.ANONYMOUS_ENV, "true" );        EveLdapContext ctx = ( EveLdapContext ) setSysRoot( anonymous );        assertNotNull( ctx );        // now go in as anonymous user and we should be wh        env.put( Context.PROVIDER_URL, "ou=system" );        env.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.eve.jndi.EveContextFactory" );        InitialContext initial = new InitialContext( env );        try        {            ctx = ( EveLdapContext ) initial.lookup( "uid=admin" );            fail( "should not get here due to exception cuz anonymous user is "                    + "not allowed read access to the admin account entry" );        }        catch( LdapConfigurationException e )        {        }        catch( LdapNoPermissionException e )        {        }    }