DirContext ctx = createSubContext( "ou", "blah" );
createSubContext( ctx, "ou", "subctx" );
try
{
sysRoot.destroySubcontext( "ou=blah" );
fail( "Execution should never get here due to exception!" );
}
catch ( LdapContextNotEmptyException e )
{
assertEquals( "ou=blah,ou=system", e.getResolvedName().toString() );