@Test
public void testAllAttributeValues() throws Exception
{
Set<AttributeType> attrTypes = new HashSet<AttributeType>();
attrTypes.add( CN_AT );
Collection<ACITuple> tuples = getTuples( new AllAttributeValuesItem( attrTypes ) );
// Test wrong scope
AciContext aciContext = new AciContext( null, null );
aciContext.setAciTuples( tuples );
aciContext.setUserDn( USER_NAME );
aciContext.setAttributeType( CN_AT );
assertEquals( 0, filterA.filter( aciContext, OperationScope.ENTRY, null ).size() );
tuples = getTuples( new AllAttributeValuesItem( attrTypes ) );
aciContext = new AciContext( null, null );
aciContext.setAciTuples( tuples );
aciContext.setUserDn( USER_NAME );
aciContext.setAttributeType( CN_AT );