@Test
@ExpectedDatabase("toDoData.xml")
public void addTodoWhenTitleAndDescriptionAreTooLongAsUser() throws Exception {
String title = TodoTestUtil.createStringWithLength(Todo.MAX_LENGTH_TITLE + 1);
String description = TodoTestUtil.createStringWithLength(Todo.MAX_LENGTH_DESCRIPTION + 1);
TodoDTO added = TodoTestUtil.createDTO(null, description, title);
mockMvc.perform(post("/api/todo")
.contentType(IntegrationTestUtil.APPLICATION_JSON_UTF8)
.content(IntegrationTestUtil.convertObjectToJsonBytes(added))
.with(userDetailsService(IntegrationTestUtil.CORRECT_USERNAME))