result = new EncodableLdapResult(LdapResult.REFERRAL, null, null, null);
server.setResponseSeq(new LdapMessage[] { new LdapMessage(
LdapASN1Constant.OP_DEL_RESPONSE, result, null) });
try {
context.destroySubcontext("cn=test");
fail("Should throw PartialResultException");
} catch (PartialResultException e) {
// expected
}
}