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