@Test
public void testMaxHopsPolicy()
{
Any value = create_any();
value.insert_ushort((short)17);
MaxHopsPolicy p = (MaxHopsPolicy)create_policy
(
org.omg.Messaging.MAX_HOPS_POLICY_TYPE.value,
value
);
assertEquals (MAX_HOPS_POLICY_TYPE.value, p.policy_type());
assertEquals (17, p.max_hops());
MaxHopsPolicy p2 = (MaxHopsPolicy)p.copy();
assertEquals (p.max_hops(), p2.max_hops());
p.destroy();
p2.destroy();
}