addFormParameter(proxy, "sortOrder", "score");
addFormParameter(proxy, "maxNum", "10");
proxy.execute();
assertResultOK(proxy);
ObjectNode json = getJSON(proxy);
DateTime now = TimeUtil.getCurrentDateTime();
boolean findEventWhichIsAfterDeadline = false;
boolean findEventWhichIsBeforeDeadline = false;
for (JsonNode eventJSON : json.get("events")) {
Event event = loadEvent(eventJSON.get("id").asText());
List<EventTicket> tickets = loadEventTickets(event.getId());
DateTime deadline = event.acceptsSomeTicketsTill(tickets);
if (deadline.isBefore(now)) {