public void testUnicodeFilter_DIRSERVER_1347() throws Exception
{
LdapContext ctx = ( LdapContext ) getWiredContext( getLdapServer() ).lookup( BASE );
Attributes groupOfNames = new BasicAttributes( true );
Attribute groupOfNamesOC = new BasicAttribute( "objectClass" );
groupOfNamesOC.add( "top" );
groupOfNamesOC.add( "groupOfNames" );
groupOfNames.put( groupOfNamesOC );
groupOfNames.put( "cn", "groupOfNames" );
Attribute member = new BasicAttribute( "member" );
member.add( "uid=test,ou=system" );
member.add( "uid=r\u00e9dacteur1,ou=system" );
groupOfNames.put( member );
ctx.createSubcontext( "cn=groupOfNames", groupOfNames );
Attributes groupOfUniqueNames = new BasicAttributes( true );
Attribute groupOfUniqueNamesOC = new BasicAttribute( "objectClass" );
groupOfUniqueNamesOC.add( "top" );
groupOfUniqueNamesOC.add( "groupOfUniqueNames" );
groupOfUniqueNames.put( groupOfUniqueNamesOC );
groupOfUniqueNames.put( "cn", "groupOfUniqueNames" );
Attribute uniqueMember = new BasicAttribute( "uniqueMember" );
uniqueMember.add( "uid=test,ou=system" );
uniqueMember.add( "uid=r\u00e9dacteur1,ou=system" );
groupOfUniqueNames.put( uniqueMember );
ctx.createSubcontext( "cn=groupOfUniqueNames", groupOfUniqueNames );
SearchControls controls = new SearchControls();
NamingEnumeration<SearchResult> res;