* using JNDI, with 'ignore'.
*/
@Test
public void testDeleteExistingEntryReferralJNDIIgnore() throws Exception
{
CoreSession session = service.getAdminSession();
// Set to 'throw'
MNNCtx.addToEnvironment( Context.REFERRAL, "ignore" );
MNNCtx.destroySubcontext( "ou=Roles" );
DN dn = new DN( "ou=Roles,o=MNN,c=WW,ou=system" );
// We should not find the entry
try
{
session.lookup( dn, new String[]{} );
fail();
}
catch ( NameNotFoundException nnfe )
{
assertTrue( true );