assertThat(formObject.getTitle(), is(TITLE));
}
@Test
public void update_TodoEntryNotFound_ShouldRender404View() throws Exception {
when(todoServiceMock.update(isA(TodoDTO.class))).thenThrow(new TodoNotFoundException(""));
mockMvc.perform(post("/todo/update")
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
.param(WebTestConstants.FORM_FIELD_DESCRIPTION, DESCRIPTION)
.param(WebTestConstants.FORM_FIELD_ID, ID.toString())