sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES_NAME );
sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_DEREF_ALIAS_PROP, DerefAliasesEnum.NEVER_DEREF_ALIASES_NAME );
    public void testModifyOperationalOpAttrs() throws NamingException    {        /*         * create ou=testing00,ou=system         */        Attributes attributes = new BasicAttributes( true );        Attribute attribute = new BasicAttribute( "objectClass" );        attribute.add( "top" );        attribute.add( "organizationalUnit" );        attributes.put( attribute );        attributes.put( "ou", "testing00" );        DirContext ctx = sysRoot.createSubcontext( "ou=testing00", attributes );        assertNotNull( ctx );        ctx = ( DirContext ) sysRoot.lookup( "ou=testing00" );        assertNotNull( ctx );        attributes = ctx.getAttributes( "" );        assertNotNull( attributes );        assertEquals( "testing00", attributes.get( "ou" ).get() );        attribute = attributes.get( "objectClass" );        assertNotNull( attribute );        assertTrue( attribute.contains( "top" ) );        assertTrue( attribute.contains( "organizationalUnit" ) );        assertNull( attributes.get( CREATE_TIMESTAMP ) );        assertNull( attributes.get( CREATORS_NAME ) );        SearchControls ctls = new SearchControls();        ctls.setReturningAttributes( new String[]            { "ou", "createTimestamp", "creatorsName" } );        sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES_NAME );        NamingEnumeration list;        list = sysRoot.search( "", "(ou=testing00)", ctls );        SearchResult result = ( SearchResult ) list.next();        list.close();        assertNotNull( result.getAttributes().get( "ou" ) );        assertNotNull( result.getAttributes().get( CREATORS_NAME ) );        assertNotNull( result.getAttributes().get( CREATE_TIMESTAMP ) );    }