public void testReplyPriorityPolicy()
{
PriorityRange pr = new PriorityRange ((short)10, (short)20);
Any value = create_any();
PriorityRangeHelper.insert (value, pr);
ReplyPriorityPolicy p = (ReplyPriorityPolicy)create_policy
(
REPLY_PRIORITY_POLICY_TYPE.value,
value
);
assertEquals (REPLY_PRIORITY_POLICY_TYPE.value, p.policy_type());
PriorityRange outPR = p.priority_range();
assertEquals (pr.min, outPR.min);
assertEquals (pr.max, outPR.max);
ReplyPriorityPolicy p2 = (ReplyPriorityPolicy)p.copy();
PriorityRange otherPR = p2.priority_range();
assertEquals (outPR.min, otherPR.min);
assertEquals (outPR.max, otherPR.max);
p.destroy();
p2.destroy();
}