attributes.put( "ou", "testing01" );
attributes.put( "ou", "testing00" ); ctx = sysRoot.createSubcontext( "ou=testing00", attributes ); assertNotNull( ctx );
    public void testFailCreateExisting() throws NamingException    {        Attribute attribute;        Attributes attributes;        DirContext ctx = null;        /*         * fail on ou=testing01,ou=system         */        attributes = new BasicAttributes();        attribute = new BasicAttribute( "objectClass" );        attribute.add( "top" );        attribute.add( "organizationalUnit" );        attributes.put( attribute );        attributes.put( "ou", "testing01" );        try        {            ctx = sysRoot.createSubcontext( "ou=testing01", attributes );            fail( "Attept to create exiting context should fail!" );        }        catch ( NamingException e )        {            assertNotNull( e );        }        assertNull( ctx );    }