}
@Test
public void update() throws TodoNotFoundException {
TodoDTO dto = TodoTestUtil.createDTO(TodoTestUtil.ID, TodoTestUtil.DESCRIPTION_UPDATED, TodoTestUtil.TITLE_UPDATED);
Todo model = TodoTestUtil.createModel(TodoTestUtil.ID, TodoTestUtil.DESCRIPTION, TodoTestUtil.TITLE);
when(repositoryMock.findOne(dto.getId())).thenReturn(model);
Todo actual = service.update(dto);
verify(repositoryMock, times(1)).findOne(dto.getId());
verifyNoMoreInteractions(repositoryMock);
assertEquals(dto.getId(), actual.getId());
assertEquals(dto.getDescription(), actual.getDescription());
assertEquals(dto.getTitle(), actual.getTitle());
}