"code"));
}
@Test
public void testExistingPGT() throws Exception {
final TicketGrantingTicket ticket = new TicketGrantingTicketImpl(
"ticketGrantingTicketId", TestUtils.getAuthentication(),
new NeverExpiresExpirationPolicy());
getTicketRegistry().addTicket(ticket);
MockHttpServletRequest request = new MockHttpServletRequest();
request
.addParameter("pgt", ticket.getId());
request.addParameter(
"targetService", "service");
assertTrue(this.proxyController.handleRequestInternal(request,
new MockHttpServletResponse()).getModel().containsKey(