.id(ID)
.description(DESCRIPTION_UPDATED)
.title(TITLE_UPDATED)
.build();
Todo model = new TodoBuilder()
.id(ID)
.description(DESCRIPTION)
.title(TITLE)
.build();
when(repositoryMock.findOne(dto.getId())).thenReturn(model);
Todo actual = service.update(dto);
verify(repositoryMock, times(1)).findOne(dto.getId());
verifyNoMoreInteractions(repositoryMock);
assertThat(model.getId(), is(dto.getId()));