@ExpectedDatabase("toDoData.xml")
public void updateTodoWhenTitleAndDescriptionAreTooLongAsUser() throws Exception {
String title = TodoTestUtil.createStringWithLength(Todo.MAX_LENGTH_TITLE + 1);
String description = TodoTestUtil.createStringWithLength(Todo.MAX_LENGTH_DESCRIPTION + 1);
TodoDTO updated = TodoTestUtil.createDTO(1L, description, title);
mockMvc.perform(put("/api/todo/{id}", 1L)
.contentType(IntegrationTestUtil.APPLICATION_JSON_UTF8)
.body(IntegrationTestUtil.convertObjectToJsonBytes(updated))
.with(userDetailsService(IntegrationTestUtil.CORRECT_USERNAME))