### Question:
FavoritePlaceWithLocationMapper extends AbstractConverter<FavoritePlace, PlaceByBoundsDto> { @Override public PlaceByBoundsDto convert(FavoritePlace entity) { PlaceByBoundsDto placeByBoundsDto = new PlaceByBoundsDto(); placeByBoundsDto.setId(entity.getId()); placeByBoundsDto.setName(entity.getName()); LocationDto location = new LocationDto(); location.setId(entity.getPlace().getLocation().getId()); location.setLng(entity.getPlace().getLocation().getLng()); location.setLat(entity.getPlace().getLocation().getLat()); location.setAddress(entity.getPlace().getLocation().getAddress()); placeByBoundsDto.setLocation(location); return placeByBoundsDto; }  @Override PlaceByBoundsDto convert(FavoritePlace entity);  }### Answer:
@Test public void convertTest() { FavoritePlace favoritePlace = ModelUtils.getFavoritePlace(); LocationDto location = new LocationDto(); location.setId(favoritePlace.getPlace().getLocation().getId()); location.setLng(favoritePlace.getPlace().getLocation().getLng()); location.setLat(favoritePlace.getPlace().getLocation().getLat()); location.setAddress(favoritePlace.getPlace().getLocation().getAddress()); PlaceByBoundsDto expected = new PlaceByBoundsDto(favoritePlace.getId(), favoritePlace.getName(), location); assertEquals(expected, favoritePlaceWithLocationMapper.convert(favoritePlace)); }