@Test
public void testCompleteBypass() throws Exception
{
Dn dn = new Dn( schemaManager, "ou=system" );
DirectoryService ds = new MockDirectoryService( 0 );
DefaultCoreSession session = new DefaultCoreSession( new LdapPrincipal( schemaManager, new Dn( schemaManager ), AuthenticationLevel.STRONG ),
ds );
LookupOperationContext lookupContext = new LookupOperationContext( session, dn );
lookupContext.setByPassed( ByPassConstants.BYPASS_ALL_COLLECTION );
InvocationStack.getInstance().push( lookupContext );