* Tests that setting flags is idempotent.
*/
@Test
public void testDuplicateSetting()
{
TicketFlags flags = new TicketFlags();
flags.setFlag( TicketFlag.MAY_POSTDATE );
flags.setFlag( TicketFlag.FORWARDABLE );
flags.setFlag( TicketFlag.PROXIABLE );
flags.setFlag( TicketFlag.MAY_POSTDATE );
flags.setFlag( TicketFlag.RENEWABLE );
assertEquals( flags.toString(), "FORWARDABLE(1) PROXIABLE(3) MAY_POSTDATE(5) RENEWABLE(8)" );
}