@Test
public void testRelativeRoundtripTimeoutPolicy()
{
Any value = create_any();
value.insert_ulonglong(123456789);
RelativeRoundtripTimeoutPolicy p = (RelativeRoundtripTimeoutPolicy)create_policy
(
RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,
value
);
assertEquals (RELATIVE_RT_TIMEOUT_POLICY_TYPE.value, p.policy_type());
assertEquals (123456789, p.relative_expiry());
RelativeRoundtripTimeoutPolicy p2 = (RelativeRoundtripTimeoutPolicy)p.copy();
assertEquals (p.relative_expiry(), p2.relative_expiry());
p.destroy();
p2.destroy();
}