public void testReplyEndTimePolicy()
{
UtcT time = new UtcT(12, 34, (short)56, (short)78);
Any value = create_any();
UtcTHelper.insert (value, time);
ReplyEndTimePolicy p = (ReplyEndTimePolicy)create_policy
(
REPLY_END_TIME_POLICY_TYPE.value,
value
);
assertEquals (REPLY_END_TIME_POLICY_TYPE.value, p.policy_type());
UtcT outTime = p.end_time();
assertEquals (time.time, outTime.time);
assertEquals (time.inacchi, outTime.inacchi);
assertEquals (time.inacclo, outTime.inacclo);
assertEquals (time.tdf, outTime.tdf);
ReplyEndTimePolicy p2 = (ReplyEndTimePolicy)p.copy();
UtcT otherTime = p2.end_time();
assertEquals (otherTime.time, outTime.time);
assertEquals (otherTime.inacchi, outTime.inacchi);
assertEquals (otherTime.inacclo, outTime.inacclo);
assertEquals (otherTime.tdf, outTime.tdf);
p.destroy();
p2.destroy();
}