@Test
public void testGetUsernamesInRole4() throws Exception {
SearchControls con1 = new SearchControls();
con1.setReturningAttributes( new String[] { "uniqueMember" } ); //$NON-NLS-1$
LdapSearchParamsFactory paramFactory =
new LdapSearchParamsFactoryImpl( "ou=groups", "(&(objectClass=groupOfUniqueNames)(cn={0}))", con1 ); //$NON-NLS-1$//$NON-NLS-2$
Transformer transformer1 = new SearchResultToAttrValueList( "uniqueMember", "uid" ); //$NON-NLS-1$ //$NON-NLS-2$
GrantedAuthorityToString transformer2 = new GrantedAuthorityToString();
LdapSearch usernamesInRoleSearch =
new GenericLdapSearch( getContextSource(), paramFactory, transformer1, transformer2 );
SearchControls con2 = new SearchControls();
con2.setReturningAttributes( new String[] { "uid" } ); //$NON-NLS-1$
LdapSearchParamsFactory paramFactory2 =
new LdapSearchParamsFactoryImpl( "ou=users", "(businessCategory=cn={0}*)", con2 ); //$NON-NLS-1$//$NON-NLS-2$
Transformer transformer3 = new SearchResultToAttrValueList( "uid" ); //$NON-NLS-1$
GrantedAuthorityToString transformer4 = new GrantedAuthorityToString();