@Test
public void testRebindPolicy()
{
Any value = create_any();
value.insert_short((short)0xffff);
RebindPolicy p = (RebindPolicy)create_policy
(
org.omg.Messaging.REBIND_POLICY_TYPE.value,
value
);
assertEquals (REBIND_POLICY_TYPE.value, p.policy_type());
assertEquals ((short)0xffff, p.rebind_mode());
RebindPolicy p2 = (RebindPolicy)p.copy();
assertEquals (p.rebind_mode(), p2.rebind_mode());
p.destroy();
p2.destroy();
}