source: class LoginTicketManagerTest {
  
  	@Autowired
  	private LoginTicketManager manager;
  
  	@Test
  	public void testDeleteExpired() throws ExternalAppNotMappedException
  	{
  
target: 		int oldValidity = manager.getTicketValiditySeconds();
  		manager.setTicketValiditySeconds(0);
  		manager.resetTickets();
  		assertEquals(0, manager.getSize());
  		int i = 0;
  		for (; i < 100; i++)
  		{
  			manager.generateNewTicket("test", "testUser");
  		}
  
  		manager.deleteExpired();
  		assertEquals(0, manager.getSize());
  		manager.setTicketValiditySeconds(oldValidity);
  	}
  
  }