Authentication a = TestUtils.getAuthentication();
TicketGrantingTicket t = new TicketGrantingTicketImpl("test", TestUtils
.getAuthentication(), new NeverExpiresExpirationPolicy());
ServiceTicket s = t.grantServiceTicket(this.uniqueTicketIdGenerator
.getNewTicketId(ServiceTicket.PREFIX), TestUtils.getService(),
new MultiTimeUseOrTimeoutExpirationPolicy(1, 5000), false);
TicketGrantingTicket t1 = s.grantTicketGrantingTicket(
this.uniqueTicketIdGenerator
.getNewTicketId(TicketGrantingTicket.PREFIX), a,
new NeverExpiresExpirationPolicy());