### Question:
HabitCreateDtoMapper extends AbstractConverter<Habit, HabitCreateDto> { @Override protected HabitCreateDto convert(Habit habit) { HabitCreateDto habitCreateDto = new HabitCreateDto(); HabitDictionaryDto habitDictionaryDto = new HabitDictionaryDto(); habitDictionaryDto.setImage(habit.getHabitDictionary().getImage()); habitDictionaryDto.setId(habit.getHabitDictionary().getId()); habitCreateDto.setId(habit.getId()); habitCreateDto.setStatus(habit.getStatusHabit()); habitCreateDto.setHabitDictionary(habitDictionaryDto); return habitCreateDto; }    }### Answer:
@Test public void convertTest() { Habit habit = ModelUtils.getHabit(); HabitCreateDto expected = new HabitCreateDto(); HabitDictionaryDto habitDictionaryDto = new HabitDictionaryDto(); habitDictionaryDto.setImage(habit.getHabitDictionary().getImage()); habitDictionaryDto.setId(habit.getHabitDictionary().getId()); expected.setId(habit.getId()); expected.setStatus(habit.getStatusHabit()); expected.setHabitDictionary(habitDictionaryDto); assertEquals(expected, habitCreateDtoMapper.convert(habit)); }