}
public void testWithMinMaxAndChopBefore() throws Exception
{
SubtreeSpecificationModifier modifier = new SubtreeSpecificationModifier();
Set chopBefore = new HashSet();
chopBefore.add( new LdapName( "uid=Tori Amos" ) );
chopBefore.add( new LdapName( "ou=threelevels,ou=twolevels,uid=akarasulu" ) );
modifier.setChopBeforeExclusions( chopBefore );
modifier.setMinBaseDistance( 1 );
modifier.setMaxBaseDistance( 3 );
modifier.setBase( new LdapName( "ou=users" ) );
SubtreeSpecification ss = modifier.getSubtreeSpecification();
Name apDn = new LdapName( "ou=system" );
Name entryDn = new LdapName( "ou=users,ou=system" );
Attribute objectClasses = new BasicAttribute( "objectClass" );
assertFalse( evaluator.evaluate( ss, apDn, entryDn, objectClasses ) );