verifyNoMoreInteractions(todoServiceMock);
}
@Test
public void deleteById_TodoEntryNotFound_ShouldRender404View() throws Exception {
when(todoServiceMock.deleteById(ID)).thenThrow(new TodoNotFoundException(""));
mockMvc.perform(get("/todo/delete/{id}", ID))
.andExpect(status().isNotFound())
.andExpect(view().name(ErrorController.VIEW_NOT_FOUND))
.andExpect(forwardedUrl("/WEB-INF/jsp/error/404.jsp"));