*/
public class UnionizingLdapAuthoritiesPopulatorTests extends AbstractPentahoLdapIntegrationTests {
@Test
public void testGetGrantedAuthorities() throws Exception {
DefaultLdapAuthoritiesPopulator wrappedPop;
wrappedPop = new DefaultLdapAuthoritiesPopulator( getContextSource(), "ou=roles" ); //$NON-NLS-1$
wrappedPop.setRolePrefix( "ROLE_" ); //$NON-NLS-1$
wrappedPop.setGroupSearchFilter( "(roleOccupant={0})" ); //$NON-NLS-1$
DefaultLdapAuthoritiesPopulator wrappedPop2;
wrappedPop2 = new DefaultLdapAuthoritiesPopulator( getContextSource(), "ou=groups" ); //$NON-NLS-1$
wrappedPop2.setRolePrefix( "ROLE_" ); //$NON-NLS-1$
wrappedPop2.setGroupSearchFilter( "(uniqueMember={0})" ); //$NON-NLS-1$
Set populators = new HashSet();
populators.add( wrappedPop );
populators.add( wrappedPop2 );
UnionizingLdapAuthoritiesPopulator unionizer = new UnionizingLdapAuthoritiesPopulator();