@Test
public void delete_TodoEntryNotFound_ShouldReturnHttpStatusCodeNotFound() throws Exception {

    when(todoCrudServiceMock.delete(ID)).thenThrow(new TodoNotFoundException(""));
    mockMvc.perform(delete("/api/todo/{id}", ID))
            .andExpect(status().isNotFound());
    verify(todoCrudServiceMock, times(1)).delete(ID);
    verifyNoMoreInteractions(todoCrudServiceMock);
    verifyZeroInteractions(todoSearchServiceMock);
}