assertTrue(s.isFromNewLogin());
}
public void testServiceTicketAsFromNotInitialCredentials() {
TicketGrantingTicket t = new TicketGrantingTicketImpl("test", null,
TestUtils.getAuthentication(), new NeverExpiresExpirationPolicy());
ServiceTicket s = t.grantServiceTicket(this.uniqueTicketIdGenerator
.getNewTicketId(ServiceTicket.PREFIX), TestUtils.getService(),
new NeverExpiresExpirationPolicy(), false);
s = t.grantServiceTicket(this.uniqueTicketIdGenerator
.getNewTicketId(ServiceTicket.PREFIX), TestUtils.getService(),
new NeverExpiresExpirationPolicy(), false);
assertFalse(s.isFromNewLogin());
}