@Test
public void findAll_OneTodoEntryFound_ShouldReturnTodoEntriesAsJsonDocument() throws Exception {

    TodoDTO foundTodoEntry = new TodoDTOBuilder()
            .creationTime(CREATION_TIME)
            .description(DESCRIPTION)
            .id(ID)
            .modificationTime(MODIFICATION_TIME)
            .title(TITLE)
            .build();
    when(todoCrudServiceMock.findAll()).thenReturn(Arrays.asList(foundTodoEntry));
    mockMvc.perform(get("/api/todo"))
            .andExpect(status().isOk())
            .andExpect(content().contentType(WebTestConstants.APPLICATION_JSON_UTF8))
            .andExpect(jsonPath("$", hasSize(1)))
            .andExpect(jsonPath("$[0].id", is(ID.intValue())))
            .andExpect(jsonPath("$[0].creationTime", is(CREATION_TIME)))
            .andExpect(jsonPath("$[0].description", is(DESCRIPTION)))
            .andExpect(jsonPath("$[0].modificationTime", is(MODIFICATION_TIME)))
            .andExpect(jsonPath("$[0].title", is(TITLE)));
    verify(todoCrudServiceMock, times(1)).findAll();
    verifyNoMoreInteractions(todoCrudServiceMock);
    verifyZeroInteractions(todoSearchServiceMock);
}