return new BerkleyDbTicketRegistryTestSetup(new LoadTest(testCase, 100));
}
public void testBasicFunctionality() throws Exception {
Ticket originalTicket = generateRandomTicket();
String id = originalTicket.getId();
long createTime = originalTicket.getCreationTime();
registry.addTicket(originalTicket);
Ticket retrievedTicket = registry.getTicket(id);
assertEquals(originalTicket, retrievedTicket);
assertEquals(id, retrievedTicket.getId());
assertEquals(createTime, retrievedTicket.getCreationTime());
Collection allTickets = registry.getTickets();
assertTrue(allTickets.contains(originalTicket));
}