ActionProxy proxy = getActionProxy(POST, "/api/event/modify");
loginAs(proxy, EVENT_OWNER_ID);
addValidSessionTokenToParameter(proxy);
addFormParameter(proxy, "eventId", DEFAULT_EVENT_ID);
addFormParameter(proxy, "endDate", newEndDate.toHumanReadableFormat());
proxy.execute();
assertResultOK(proxy);
Event modified = loadEvent(DEFAULT_EVENT_ID);
assertThat(modified.getEndDate(), is(newEndDate));
}