public void testTGTThatIsExpired() throws Exception {
final OpenIdCredentials c = new OpenIdCredentials("test", "test");
final TicketGrantingTicket t = getTicketGrantingTicket();
this.ticketRegistry.addTicket(t);
t.expire();
assertFalse(this.openIdCredentialsAuthenticationHandler.authenticate(c));
}
public void testTGTWithDifferentId() throws Exception {
final OpenIdCredentials c = new OpenIdCredentials("test", "test1");