@Test
public void testQueueOrderPolicy()
{
Any value = create_any();
value.insert_short((short)0xffff);
QueueOrderPolicy p = (QueueOrderPolicy)create_policy
(
org.omg.Messaging.QUEUE_ORDER_POLICY_TYPE.value,
value
);
assertEquals (QUEUE_ORDER_POLICY_TYPE.value, p.policy_type());
assertEquals ((short)0xffff, p.allowed_orders());
QueueOrderPolicy p2 = (QueueOrderPolicy)p.copy();
assertEquals (p.allowed_orders(), p2.allowed_orders());
p.destroy();
p2.destroy();
}