private static final String SEARCH_QUERY = "あ";
@Test
public void testSearchEventAllCategory() throws Exception {
storeEventBeforeDeadline();
ActionProxy proxy = getActionProxy(POST, "/api/event/search");
addFormParameter(proxy, "query", SEARCH_QUERY);
addFormParameter(proxy, "category", "all");
addFormParameter(proxy, "beforeDeadlineOnly", "true");
addFormParameter(proxy, "sortOrder", "score");
addFormParameter(proxy, "maxNum", "10");
proxy.execute();
assertResultOK(proxy);
ObjectNode json = getJSON(proxy);
assertPublicEventsAreFound(json);
assertThat(json.has("reason"), equalTo(false));