assertThat(model.getTitle(), is(dto.getTitle()));
}
@Test
public void deleteById_TodoEntryFound_ShouldDeleteTodoEntryAndReturnIt() throws TodoNotFoundException {
Todo model = new TodoBuilder()
.id(ID)
.description(DESCRIPTION)
.title(TITLE)
.build();
when(repositoryMock.findOne(ID)).thenReturn(model);
Todo actual = service.deleteById(ID);
verify(repositoryMock, times(1)).findOne(ID);
verify(repositoryMock, times(1)).delete(model);
verifyNoMoreInteractions(repositoryMock);