pcfg.setName( "example" );
pcfg.setName( "mixedcase" );
    public void setUp() throws Exception    {        BasicAttributes attrs;        Set indexedAttrs;        Set pcfgs = new HashSet();        MutableContextPartitionConfiguration pcfg;                // Add partition 'testing'        pcfg = new MutableContextPartitionConfiguration();        pcfg.setName( "testing" );        pcfg.setSuffix( "ou=testing" );                indexedAttrs = new HashSet();        indexedAttrs.add( "ou" );        indexedAttrs.add( "objectClass" );        pcfg.setIndexedAttributes( indexedAttrs );        attrs = new BasicAttributes( true );        BasicAttribute attr = new BasicAttribute( "objectClass" );        attr.add( "top" );        attr.add( "organizationalUnit" );        attr.add( "extensibleObject" );        attrs.put( attr );        attr = new BasicAttribute( "ou" );        attr.add( "testing" );        attrs.put( attr );        pcfg.setContextEntry( attrs );                pcfgs.add( pcfg );                // Add partition 'example'        pcfg = new MutableContextPartitionConfiguration();        pcfg.setName( "example" );        pcfg.setSuffix( "dc=example" );                indexedAttrs = new HashSet();        indexedAttrs.add( "ou" );        indexedAttrs.add( "dc" );        indexedAttrs.add( "objectClass" );        pcfg.setIndexedAttributes( indexedAttrs );                attrs = new BasicAttributes( true );        attr = new BasicAttribute( "objectClass" );        attr.add( "top" );        attr.add( "domain" );        attr.add( "extensibleObject" );        attrs.put( attr );        attr = new BasicAttribute( "dc" );        attr.add( "example" );        attrs.put( attr );        pcfg.setContextEntry( attrs );                pcfgs.add( pcfg );        // Add partition 'MixedCase'        pcfg = new MutableContextPartitionConfiguration();        pcfg.setName( "example" );        pcfg.setSuffix( "dc=MixedCase" );                indexedAttrs = new HashSet();        indexedAttrs.add( "dc" );        indexedAttrs.add( "objectClass" );        pcfg.setIndexedAttributes( indexedAttrs );        attrs = new BasicAttributes( true );        attr = new BasicAttribute( "objectClass" );        attr.add( "top" );        attr.add( "domain" );        attr.add( "extensibleObject" );        attrs.put( attr );        attr = new BasicAttribute( "dc" );        attr.add( "MixedCase" );        attrs.put( attr );        pcfg.setContextEntry( attrs );                pcfgs.add( pcfg );                configuration.setContextPartitionConfigurations( pcfgs );        super.setUp();    }