@Test
public void testToModifyBeginDateFromEpoc() throws Exception {
DateTime dt = TimeUtil.create(2012, 8, 1, 0, 0, 0);
ActionProxy proxy = getActionProxy(POST, "/api/event/modify");
loginAs(proxy, EVENT_OWNER_ID);
addValidSessionTokenToParameter(proxy);
addFormParameter(proxy, "eventId", DEFAULT_EVENT_ID);
addFormParameter(proxy, "beginDate", String.valueOf(dt.getTime()));
proxy.execute();
assertResultOK(proxy);
Event modified = loadEvent(DEFAULT_EVENT_ID);
assertThat(modified.getBeginDate(), is(dt));
}