assertThat(modified.getTitle(), is("modified"));
}
@Test
public void testToModifyTitleEmpty() throws Exception {
ActionProxy proxy = getActionProxy(POST, "/api/event/modify");
loginAs(proxy, EVENT_OWNER_ID);
addValidSessionTokenToParameter(proxy);
addFormParameter(proxy, "eventId", DEFAULT_EVENT_ID);
addFormParameter(proxy, "title", "");
proxy.execute();
assertResultInvalid(proxy, UserErrorCode.INVALID_PARAMETERS, "title");
}